[Glitch] Remove unnecessary restrictions on HTML handling
Port 9f7075a0ce2b6ecef8d92ef318785fa8ce708688 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
2d8b7a7fd8
commit
ee87afd6a4
@ -38,7 +38,7 @@ export const HandledLink: FC<HandledLinkProps & ComponentProps<'a'>> = ({
|
|||||||
{children}
|
{children}
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
} else if ((text.startsWith('@') || prevText?.endsWith('@')) && mention) {
|
} else if (mention) {
|
||||||
// Handle mentions
|
// Handle mentions
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
@ -316,7 +316,7 @@ class StatusContent extends PureComponent {
|
|||||||
{children}
|
{children}
|
||||||
</HandledLink>
|
</HandledLink>
|
||||||
);
|
);
|
||||||
} else if (element instanceof HTMLParagraphElement && element.classList.contains('quote-inline')) {
|
} else if (element.classList.contains('quote-inline')) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user