♻️ Updated way to setting thumbnail & compressed

This commit is contained in:
2024-12-28 15:42:19 +08:00
parent dda85eae98
commit 845894f12c
4 changed files with 99 additions and 12 deletions

View File

@ -33,6 +33,7 @@ type Attachment struct {
HashCode string `json:"hash"`
Destination int `json:"destination"`
RefCount int `json:"ref_count"`
Type uint `json:"type"`
FileChunks datatypes.JSONMap `json:"file_chunks"`
@ -108,6 +109,7 @@ func (v AttachmentFragment) ToAttachment() Attachment {
Metadata: v.Metadata,
Usermeta: v.Usermeta,
Destination: AttachmentDstTemporary,
Type: AttachmentTypeNormal,
Pool: v.Pool,
PoolID: v.PoolID,
AccountID: v.AccountID,