diff --git a/src/routes/_utils/statusHtmlToPlainText.js b/src/routes/_utils/statusHtmlToPlainText.js index 35b01b17..a8563a17 100644 --- a/src/routes/_utils/statusHtmlToPlainText.js +++ b/src/routes/_utils/statusHtmlToPlainText.js @@ -37,6 +37,10 @@ export function statusHtmlToPlainText (html, mentions) { return '' } mark('statusHtmlToPlainText') + // GNU Social and Pleroma don't add

tags + if (!html.startsWith('

')) { + html = `

${html}

` + } let doc = domParser.parseFromString(html, 'text/html') massageMentions(doc, mentions) let res = innerTextRetainingNewlines(doc)