mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
Fix inverted regex filter condition
The inverted condition caused only own toots and toots matching the regex to be shown instead of matches being filtered. Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
@@ -51,7 +51,7 @@ const makeGetStatusIds = (pending = false) => createSelector([
|
||||
}
|
||||
|
||||
const searchIndex = statusForId.get('reblog') ? statuses.getIn([statusForId.get('reblog'), 'search_index']) : statusForId.get('search_index');
|
||||
if (regex && !regex.test(searchIndex)) {
|
||||
if (regex && regex.test(searchIndex)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user