Fix emoji urls being invalid

This commit is contained in:
Naomi Ahmed 2022-12-27 23:59:46 +00:00
parent 00cd311c7d
commit 200cd9f2ce
No known key found for this signature in database
GPG key ID: 06574D64E0AB9A3C

View file

@ -183,8 +183,8 @@ const getContact = async (
last_status_at: user.lastActiveDate?.toISOString(), last_status_at: user.lastActiveDate?.toISOString(),
emojis: emojis ? user.emojis.filter(e => e in emojis).map(e => ({ emojis: emojis ? user.emojis.filter(e => e in emojis).map(e => ({
shortcode: e, shortcode: e,
static_url: `${config.url}/files/${emojis[e].publicUrl}`, static_url: emojis[e].publicUrl,
url: `${config.url}/files/${emojis[e].publicUrl}`, url: emojis[e].publicUrl,
visible_in_picker: true, visible_in_picker: true,
})) : [], })) : [],
}; };