server: remove quote urls, 3rd try
All checks were successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
All checks were successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
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':
|
||||
{
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue