Skip to content

Commit

Permalink
Fix: 引用付きの投稿をブーストし、さらに引用された投稿を編集した時、フィルターがWeb表示に反映されない問題
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Oct 2, 2023
1 parent 926f1df commit f5b6592
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/javascript/mastodon/selectors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,25 @@ export const makeGetStatus = () => {
(state, { id }) => state.getIn(['statuses', id]),
(state, { id }) => state.getIn(['statuses', state.getIn(['statuses', id, 'reblog'])]),
(state, { id }) => state.getIn(['statuses', state.getIn(['statuses', id, 'quote_id'])]),
(state, { id }) => state.getIn(['statuses', state.getIn(['statuses', state.getIn(['statuses', id, 'reblog']), 'quote_id'])]),
(state, { id }) => state.getIn(['accounts', state.getIn(['statuses', id, 'account'])]),
(state, { id }) => state.getIn(['accounts', state.getIn(['statuses', state.getIn(['statuses', id, 'reblog']), 'account'])]),
getFilters,
],

(statusBase, statusReblog, statusQuote, accountBase, accountReblog, filters) => {
(statusBase, statusReblog, statusQuote, statusReblogQuote, accountBase, accountReblog, filters) => {
if (!statusBase || statusBase.get('isLoading')) {
return null;
}

if (statusReblog) {
statusReblog = statusReblog.set('account', accountReblog);
statusQuote = statusReblogQuote;
} else {
statusReblog = null;
}

if (hideBlockingQuote && statusBase.getIn(['quote', 'quote_muted'])) {
if (hideBlockingQuote && (statusReblog || statusBase).getIn(['quote', 'quote_muted'])) {
return null;
}

Expand Down

0 comments on commit f5b6592

Please sign in to comment.