forked from FoundKeyGang/FoundKey
server: remove quote urls, 3rd try
First try was66a7c62342
but classList is not in parse5 DOM. Second try was7ee6a09cf2
but forgot the contents of this commit.
This commit is contained in:
parent
a6e05226ab
commit
9fd23b5dae
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ export function fromHtml(html: string, hashtagNames?: string[], quoteUri?: strin
|
||||||
|
|
||||||
case 'span':
|
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}`) {
|
if (/\bquote-inline\b/.test(nodeClass) && quoteUri && getText(node).trim() === `RE: ${quoteUri}`) {
|
||||||
// embedded quote thingy for backwards compatibility, don't show it
|
// embedded quote thingy for backwards compatibility, don't show it
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue