server: remove quote urls, 3rd try

First try was 66a7c62342 but classList is
not in parse5 DOM. Second try was 7ee6a09cf2
but forgot the contents of this commit.
This commit is contained in:
Johann150 2022-11-27 09:26:46 +01:00
parent a6e05226ab
commit 9fd23b5dae
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -204,7 +204,7 @@ export function fromHtml(html: string, hashtagNames?: string[], quoteUri?: strin
case 'span':
{
const nodeClass = node.attrs.find(({ name }) => name === 'class');
const nodeClass = node.attrs.find(({ name }) => name === 'class')?.value;
if (/\bquote-inline\b/.test(nodeClass) && quoteUri && getText(node).trim() === `RE: ${quoteUri}`) {
// embedded quote thingy for backwards compatibility, don't show it
} else {