mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-20 20:27:07 +00:00
Simplify filtering condition
This commit is contained in:
parent
c1377049c6
commit
5d12b63e79
|
@ -47,7 +47,7 @@ const makeGetStatusIds = (pending = false) => createSelector([
|
|||
showStatus = showStatus && statusForId.get('visibility') !== 'direct';
|
||||
}
|
||||
|
||||
if (showStatus && regex && statusForId.get('account') !== me) {
|
||||
if (showStatus && regex) {
|
||||
const searchIndex = statusForId.get('reblog') ? statuses.getIn([statusForId.get('reblog'), 'search_index']) : statusForId.get('search_index');
|
||||
showStatus = !regex.test(searchIndex);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue