From e5e4105a03908e4d65a82c16714d1651c5887ced Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 28 Jan 2022 10:17:38 -0600 Subject: [PATCH] Fix quote_visible for nested quote --- app/soapbox/reducers/statuses.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/soapbox/reducers/statuses.js b/app/soapbox/reducers/statuses.js index 9c1f61109..f0f3da3ec 100644 --- a/app/soapbox/reducers/statuses.js +++ b/app/soapbox/reducers/statuses.js @@ -52,7 +52,9 @@ const fixQuote = (state, status) => { const oldStatus = state.get(status.get('id')); if (oldStatus && !status.get('quote') && isQuote(status)) { - return status.set('quote', oldStatus.get('quote')); + return status + .set('quote', oldStatus.get('quote')) + .updateIn(['pleroma', 'quote_visible'], visible => visible || oldStatus.getIn(['pleroma', 'quote_visible'])); } else { return status; }