Render unicode emoji in polls using emoji pack
Port 4407f07014
to glitch-soc
This commit is contained in:
committed by
Thibaut Girka
parent
4806232997
commit
7f32d675b0
@ -65,3 +65,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