From 7f5232c377f07c8496b1181fb14b189d13bb8575 Mon Sep 17 00:00:00 2001 From: Echo Date: Mon, 6 Oct 2025 18:20:15 +0200 Subject: [PATCH] [Glitch] Emoji: Remove re: from handleElement in StatusContent Port 9027d604204121808019e4f9b45e5e86565e7f3d to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/components/status_content.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/components/status_content.jsx b/app/javascript/flavours/glitch/components/status_content.jsx index 8b0ec56c82..4cf47adda5 100644 --- a/app/javascript/flavours/glitch/components/status_content.jsx +++ b/app/javascript/flavours/glitch/components/status_content.jsx @@ -304,7 +304,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 ( @@ -317,6 +317,8 @@ class StatusContent extends PureComponent { key={key} /> ); + } else if (element instanceof HTMLParagraphElement && element.classList.contains('quote-inline')) { + return null; } return undefined; }