From 80378921e6016567079ee8b2c03b933fc05ece31 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 6 Nov 2024 14:30:53 +0100 Subject: [PATCH] [Glitch] Fix out-of-view post contents being inconsistent with in-view post contents Port d482211aa6293f78f161cbc7149e829966cd8e3a to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/components/status.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/components/status.jsx b/app/javascript/flavours/glitch/components/status.jsx index bbf947a459..71a1d14d37 100644 --- a/app/javascript/flavours/glitch/components/status.jsx +++ b/app/javascript/flavours/glitch/components/status.jsx @@ -583,12 +583,15 @@ class Status extends ImmutablePureComponent { let prepend, rebloggedByText; + const matchedFilters = status.get('matched_filters'); + if (hidden) { return (
{status.getIn(['account', 'display_name']) || status.getIn(['account', 'username'])} - {status.get('content')} + {status.get('spoiler_text').length > 0 && ({status.get('spoiler_text')})} + {isExpanded && {status.get('content')}}
); @@ -597,7 +600,6 @@ class Status extends ImmutablePureComponent { const connectUp = previousId && previousId === status.get('in_reply_to_id'); const connectToRoot = rootId && rootId === status.get('in_reply_to_id'); const connectReply = nextInReplyToId && nextInReplyToId === status.get('id'); - const matchedFilters = status.get('matched_filters'); if (this.state.forceFilter === undefined ? matchedFilters : this.state.forceFilter) { const minHandlers = this.props.muted ? {} : {