]> cat aescling's git repositories - mastodon.git/commitdiff
Don't filter own toots (fixes #8289) (#8298)
authorThibG <thib@sitedethib.com>
Sun, 19 Aug 2018 16:44:18 +0000 (18:44 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 19 Aug 2018 16:44:18 +0000 (18:44 +0200)
app/javascript/mastodon/selectors/index.js

index 106198f7449cc31192b557582c1f743bbfdb92f2..70f08a8eb5e0dd610cbc54bb69a07d781b216872 100644 (file)
@@ -1,5 +1,6 @@
 import { createSelector } from 'reselect';
 import { List as ImmutableList } from 'immutable';
+import { me } from '../initial_state';
 
 const getAccountBase         = (state, id) => state.getIn(['accounts', id], null);
 const getAccountCounters     = (state, id) => state.getIn(['accounts_counters', id], null);
@@ -83,7 +84,7 @@ export const makeGetStatus = () => {
         statusReblog = null;
       }
 
-      const regex    = regexFromFilters(filters);
+      const regex    = (accountReblog || accountBase).get('id') !== me && regexFromFilters(filters);
       const filtered = regex && regex.test(statusBase.get('reblog') ? statusReblog.get('search_index') : statusBase.get('search_index'));
 
       return statusBase.withMutations(map => {