[Glitch] Emoji: Remove re: from handleElement in StatusContent

Port 9027d60420 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo
2025-10-06 18:20:15 +02:00
committed by Claire
parent da99ec0eea
commit 7f5232c377

View File

@@ -304,7 +304,7 @@ class StatusContent extends PureComponent {
this.node = c; this.node = c;
}; };
handleElement = (element, {key, ...props}) => { handleElement = (element, { key, ...props }) => {
if (element instanceof HTMLAnchorElement) { if (element instanceof HTMLAnchorElement) {
const mention = this.props.status.get('mentions').find(item => element.href === item.get('url')); const mention = this.props.status.get('mentions').find(item => element.href === item.get('url'));
return ( return (
@@ -317,6 +317,8 @@ class StatusContent extends PureComponent {
key={key} key={key}
/> />
); );
} else if (element instanceof HTMLParagraphElement && element.classList.contains('quote-inline')) {
return null;
} }
return undefined; return undefined;
} }