Apply suggestion to src/services/entity_normalizer/entity_normalizer.service.js

This commit is contained in:
lain 2020-06-14 13:09:14 +00:00
parent d41c9a717c
commit 72ee51c85c
1 changed files with 4 additions and 4 deletions

View File

@ -259,10 +259,10 @@ export const parseStatus = (data) => {
output.external_url = data.url
output.poll = data.poll
if (output.poll) {
output.poll.options = (output.poll.options || []).map(field => {
field.title_html = addEmojis(field.title, data.emojis)
return field
})
output.poll.options = (output.poll.options || []).map(field => ({
...field,
title_html: addEmojis(field.title, data.emojis)
}))
}
output.pinned = data.pinned
output.muted = data.muted