Support proper "animated" property for emojis

This commit is contained in:
TomatoCake
2024-07-17 19:55:03 +10:00
committed by Madeline
parent c4469a53e7
commit 0096938d36
+1 -1
View File
@@ -132,7 +132,7 @@ router.post(
require_colons: body.require_colons ?? undefined, // schema allows nulls, db does not
user: user,
managed: false,
animated: false, // TODO: Add support animated emojis
animated: body.image.split(":")[1].split(";")[0] == "image/gif",
available: true,
roles: [],
}).save();