]> cat aescling's git repositories - mastodon.git/commitdiff
Simplify filtering condition
authorThibaut Girka <thib@sitedethib.com>
Tue, 23 Jun 2020 13:37:45 +0000 (15:37 +0200)
committerThibG <thib@sitedethib.com>
Tue, 23 Jun 2020 14:09:36 +0000 (16:09 +0200)
app/javascript/flavours/glitch/features/ui/containers/status_list_container.js

index 7b998b8c2ab78469f5af86ce8c01a527d979b36a..bd2d2eb4e5560bd5c4b309ba7818d40cccd700bb 100644 (file)
@@ -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);
     }