Setting of attachment thumbnail

This commit is contained in:
2024-09-10 21:36:10 +08:00
parent 1210cda998
commit c5a975b5ed
7 changed files with 218 additions and 34 deletions

View File

@ -192,6 +192,7 @@ class AttachmentProvider extends GetConnect {
Future<Response> updateAttachment(
int id,
String alt, {
required Map<String, dynamic> metadata,
bool isMature = false,
}) async {
final AuthProvider auth = Get.find();
@ -201,6 +202,7 @@ class AttachmentProvider extends GetConnect {
var resp = await client.put('/attachments/$id', {
'alt': alt,
'metadata': metadata,
'is_mature': isMature,
});