🐛 Fix direct upload will save as non-uploaded

This commit is contained in:
2024-08-21 13:09:33 +08:00
parent 1e4d7985ea
commit fea0664d62
2 changed files with 7 additions and 3 deletions

View File

@ -51,6 +51,7 @@ func createAttachmentDirectly(c *fiber.Ctx) error {
Metadata: usermeta,
IsMature: len(c.FormValue("mature")) > 0,
IsAnalyzed: false,
IsUploaded: true,
Destination: models.AttachmentDstTemporary,
Pool: &pool,
PoolID: &pool.ID,