Fix quote_visible for nested quote

This commit is contained in:
Alex Gleason 2022-01-28 10:17:38 -06:00
parent 7bb404207a
commit e5e4105a03
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ const fixQuote = (state, status) => {
const oldStatus = state.get(status.get('id')); const oldStatus = state.get(status.get('id'));
if (oldStatus && !status.get('quote') && isQuote(status)) { 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 { } else {
return status; return status;
} }