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:
commit
91fe4f4306
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue