about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-08-19 18:44:18 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-08-19 18:44:18 +0200
commit28163528e5655bba164ebe5c4d1a1deb1056c468 (patch)
treea4783f2dbd763cc15c7137bd09329a2e80e309cd /app
parent8fe1f8d4cecb9f2f749c1e1e77b2439dd640ddc5 (diff)
Don't filter own toots (fixes #8289) (#8298)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/selectors/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/selectors/index.js b/app/javascript/mastodon/selectors/index.js
index 106198f74..70f08a8eb 100644
--- a/app/javascript/mastodon/selectors/index.js
+++ b/app/javascript/mastodon/selectors/index.js
@@ -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 => {