Merge branch 'fix-quote-imports' into 'develop'

Fix quote_visible for nested quote

See merge request soapbox-pub/soapbox-fe!1011
This commit is contained in:
Alex Gleason 2022-01-28 16:51:14 +00:00
commit 91fe4f4306

View file

@ -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;
}