1:1
This commit is contained in:
@@ -1245,6 +1245,7 @@ func widgetAttachmentPayloads(attachments []model.Attachment) []gin.H {
|
||||
payload = append(payload, gin.H{
|
||||
"id": attachment.ID,
|
||||
"message_id": attachment.MessageID,
|
||||
"account_id": attachment.AccountID,
|
||||
"thumb_url": attachment.ThumbURL,
|
||||
"data_url": attachment.FileURL,
|
||||
"file_size": attachment.FileSize,
|
||||
@@ -1252,7 +1253,6 @@ func widgetAttachmentPayloads(attachments []model.Attachment) []gin.H {
|
||||
"extension": strings.TrimPrefix(strings.ToLower(attachmentExtension(attachment.FileName)), "."),
|
||||
"width": attachment.Width,
|
||||
"height": attachment.Height,
|
||||
"created_at": attachment.CreatedAt.Unix(),
|
||||
})
|
||||
}
|
||||
return payload
|
||||
|
||||
Reference in New Issue
Block a user