opt: note

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-29 10:56:35 +08:00
parent eea5257da2
commit 6ea8ffea7a
6 changed files with 50 additions and 21 deletions

View File

@@ -1176,12 +1176,13 @@ class VideoHttp {
}
static Future delNote({
required bool isPublish,
required List noteIds,
}) async {
final res = await Request().post(
Api.delNote,
isPublish ? Api.delPublishNote : Api.delNote,
data: {
'note_ids': noteIds.join(','),
isPublish ? 'cvids' : 'note_ids': noteIds.join(','),
'csrf': Accounts.main.csrf,
},
options: Options(