From 5e68161d916e903dfb62cb1d357772646d255dde Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 25 Jan 2019 10:05:19 +0000 Subject: [PATCH] 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. --- src/services/entity_normalizer/entity_normalizer.service.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index abbc8ddf..becbab15 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -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 }