Stickers and sticker packs

This commit is contained in:
2024-08-03 15:43:15 +08:00
parent 8070a87078
commit ad1d82a2ff
10 changed files with 390 additions and 37 deletions

View File

@@ -80,11 +80,10 @@ func getAttachmentMeta(c *fiber.Ctx) error {
}
func createAttachment(c *fiber.Ctx) error {
var user models.Account
if err := gap.H.EnsureAuthenticated(c); err != nil {
return err
}
user = c.Locals("user").(models.Account)
user := c.Locals("user").(models.Account)
usage := c.FormValue("usage")
if !lo.Contains(viper.GetStringSlice("accepts_usage"), usage) {