Skip to content

Commit

Permalink
Fix filters not being correctly applied to boosted posts (mastodon#32895
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ClearlyClaire authored Nov 14, 2024
1 parent 766358e commit 2de0182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ class Status extends ImmutablePureComponent {
const connectUp = previousId && previousId === status.get('in_reply_to_id');
const connectToRoot = rootId && rootId === status.get('in_reply_to_id');
const connectReply = nextInReplyToId && nextInReplyToId === status.get('id');
const matchedFilters = status.get('matched_filters');

if (featured) {
prepend = (
Expand Down Expand Up @@ -432,7 +433,6 @@ class Status extends ImmutablePureComponent {
);
}

const matchedFilters = status.get('matched_filters');
const expanded = (!matchedFilters || this.state.showDespiteFilter) && (!status.get('hidden') || status.get('spoiler_text').length === 0);

if (hidden) {
Expand Down

0 comments on commit 2de0182

Please sign in to comment.