Apply suggestion to src/services/entity_normalizer/entity_normalizer.service.js
This commit is contained in:
parent
d41c9a717c
commit
72ee51c85c
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue