From b9f86e31fb45c9b35b72bd185dd1dc4139323f73 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 16 Nov 2023 18:02:01 +0100 Subject: [PATCH] Reduce code and markup discrepancies on reply indicator --- .../compose/components/reply_indicator.jsx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx b/app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx index 941a789328ef2f..b33475ae3fe41e 100644 --- a/app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx @@ -35,13 +35,13 @@ class ReplyIndicator extends ImmutablePureComponent { return null; } + const content = { __html: status.get('contentHtml') }; + const account = status.get('account'); - const content = status.get('content'); - const attachments = status.get('media_attachments'); return ( -
-
+
+
+ {account && ( )} -
-
- {attachments.size > 0 && ( +
+ +
+ + {status.get('media_attachments').size > 0 && ( )} -
+ ); }