entity normalizer: provide summary_html property

Mastodon API returns HTML always in spoiler_text, while TwitterAPI sends both a
text version as well as an HTML version of the message subject, which we started
to use when we allowed custom emoji in message subjects.
This commit is contained in:
William Pitcock 2019-01-25 10:05:19 +00:00
parent 03ffa7e84e
commit 5e68161d91
1 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,7 @@ export const parseStatus = (data) => {
}
output.summary = data.spoiler_text
output.summary_html = data.spoiler_text
output.external_url = data.url
// FIXME missing!!
@ -203,6 +204,7 @@ export const parseStatus = (data) => {
}
output.summary = data.summary
output.summary_html = data.summary_html
output.external_url = data.external_url
output.is_local = data.is_local
}