🛂 Authorized required to access large file

This commit is contained in:
2025-03-30 22:29:45 +08:00
parent 35e4f9a9ad
commit 370ee84b34
4 changed files with 34 additions and 16 deletions

View File

@@ -43,9 +43,9 @@ func openStickerByAlias(c *fiber.Ctx) error {
var url, mimetype string
if len(region) > 0 {
url, mimetype, err = services.OpenAttachmentByRID(sticker.Attachment.Rid, true, region)
url, _, mimetype, err = services.OpenAttachmentByRID(sticker.Attachment.Rid, 256, region)
} else {
url, mimetype, err = services.OpenAttachmentByRID(sticker.Attachment.Rid, true)
url, _, mimetype, err = services.OpenAttachmentByRID(sticker.Attachment.Rid, 288)
}
if err != nil {