mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
Support proper "animated" property for emojis
This commit is contained in:
parent
c4469a53e7
commit
0096938d36
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user