diff --git a/routes/_components/status/StatusContent.html b/routes/_components/status/StatusContent.html index 197bbde..257ba37 100644 --- a/routes/_components/status/StatusContent.html +++ b/routes/_components/status/StatusContent.html @@ -77,10 +77,10 @@ shown && 'shown' ) }, - massagedContent: (originalStatus, $autoplayGifs) => { - let content = originalStatus.content - - content = emojifyText(content, originalStatus.emojis, $autoplayGifs) + content: (originalStatus) => originalStatus.content, + emojis: (originalStatus) => originalStatus.emojis, + massagedContent: (content, emojis, $autoplayGifs) => { + content = emojifyText(content, emojis, $autoplayGifs) // GNU Social and Pleroma don't add

tags if (!content.startsWith('

')) { diff --git a/routes/_components/status/StatusSpoiler.html b/routes/_components/status/StatusSpoiler.html index 1571e16..682ecc1 100644 --- a/routes/_components/status/StatusSpoiler.html +++ b/routes/_components/status/StatusSpoiler.html @@ -61,9 +61,10 @@ store: () => store, computed: { spoilerText: (originalStatus) => originalStatus.spoiler_text, - massagedSpoilerText: (spoilerText, originalStatus, $autoplayGifs) => { + emojis: (originalStatus) => originalStatus.emojis, + massagedSpoilerText: (spoilerText, emojis, $autoplayGifs) => { spoilerText = escapeHtml(spoilerText) - return emojifyText(spoilerText, originalStatus.emojis, $autoplayGifs) + return emojifyText(spoilerText, emojis, $autoplayGifs) }, delegateKey: (uuid) => `spoiler-${uuid}` },