Emoji: Remove re: from handleElement in StatusContent (#36366)

This commit is contained in:
Echo 2025-10-06 18:20:15 +02:00 committed by GitHub
commit 9027d60420
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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