From 013bc02d23b3299e404aa80d42bfeee572227b65 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 11 Feb 2018 23:07:48 -0800 Subject: [PATCH] fix GNU Social / Pleroma compat --- routes/_components/AccountProfile.html | 12 ++++++++++-- routes/_components/status/StatusContent.html | 9 +++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/routes/_components/AccountProfile.html b/routes/_components/AccountProfile.html index 65c87e7..6b7d5bc 100644 --- a/routes/_components/AccountProfile.html +++ b/routes/_components/AccountProfile.html @@ -31,7 +31,7 @@ {{/if}}
- {{{profile.note}}} + {{{massagedNote}}}
@@ -187,7 +187,15 @@ export default { computed: { - headerIsMissing: (profile) => profile.header.endsWith('missing.png') + headerIsMissing: (profile) => profile.header.endsWith('missing.png'), + note: (profile) => profile.note, + massagedNote: (note) => { + // GNU Social / Pleroma don't add

tags + if (!note.startsWith('

')) { + note = `

${note}

` + } + return note + } }, store: () => store, components: { diff --git a/routes/_components/status/StatusContent.html b/routes/_components/status/StatusContent.html index e545ffc..9454934 100644 --- a/routes/_components/status/StatusContent.html +++ b/routes/_components/status/StatusContent.html @@ -2,7 +2,7 @@ class="status-content {{isStatusInOwnThread ? 'status-in-own-thread' : ''}} {{isStatusInNotification ? 'status-in-notification' : ''}}" ref:node > - {{{emojifiedContent}}} + {{{massagedContent}}}