Render unicode emoji in polls using emoji pack (#10185)
This commit is contained in:
@ -67,3 +67,14 @@ export function normalizeStatus(status, normalOldStatus) {
|
||||
|
||||
return normalStatus;
|
||||
}
|
||||
|
||||
export function normalizePoll(poll) {
|
||||
const normalPoll = { ...poll };
|
||||
|
||||
normalPoll.options = poll.options.map(option => ({
|
||||
...option,
|
||||
title_emojified: emojify(escapeTextContentForBrowser(option.title)),
|
||||
}));
|
||||
|
||||
return normalPoll;
|
||||
}
|
||||
|
Reference in New Issue
Block a user