1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-25 19:52:36 +01:00

Support proper "animated" property for emojis

This commit is contained in:
TomatoCake 2024-07-13 13:58:04 +02:00 committed by Madeline
parent c4469a53e7
commit 0096938d36

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();