When processing custom emoji, ensure a non-animated version exists (#5230)
Use the non-animated version in web UI, but return both in API
This commit is contained in:
@ -60,7 +60,7 @@ const normalizeStatus = (state, status) => {
|
||||
|
||||
const searchContent = [status.spoiler_text, status.content].join(' ').replace(/<br \/>/g, '\n').replace(/<\/p><p>/g, '\n\n');
|
||||
const emojiMap = normalStatus.emojis.reduce((obj, emoji) => {
|
||||
obj[`:${emoji.shortcode}:`] = emoji.url;
|
||||
obj[`:${emoji.shortcode}:`] = emoji.static_url;
|
||||
return obj;
|
||||
}, {});
|
||||
|
||||
|
Reference in New Issue
Block a user