mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
[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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user