fix: fix aria-labels for pleroma (#1113)
This commit is contained in:
parent
39b6be332a
commit
47255e818c
|
@ -37,6 +37,10 @@ export function statusHtmlToPlainText (html, mentions) {
|
|||
return ''
|
||||
}
|
||||
mark('statusHtmlToPlainText')
|
||||
// GNU Social and Pleroma don't add <p> tags
|
||||
if (!html.startsWith('<p>')) {
|
||||
html = `<p>${html}</p>`
|
||||
}
|
||||
let doc = domParser.parseFromString(html, 'text/html')
|
||||
massageMentions(doc, mentions)
|
||||
let res = innerTextRetainingNewlines(doc)
|
||||
|
|
Loading…
Reference in New Issue