Browse Source

Don't filter own toots

closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
f4d28ccfa3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/javascript/flavours/glitch/selectors/index.js

+ 2
- 1
app/javascript/flavours/glitch/selectors/index.js View File

@ -1,5 +1,6 @@
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
import { List as ImmutableList } from 'immutable'; import { List as ImmutableList } from 'immutable';
import { me } from 'flavours/glitch/util/initial_state';
const getAccountBase = (state, id) => state.getIn(['accounts', id], null); const getAccountBase = (state, id) => state.getIn(['accounts', id], null);
const getAccountCounters = (state, id) => state.getIn(['accounts_counters', id], null); const getAccountCounters = (state, id) => state.getIn(['accounts_counters', id], null);
@ -77,7 +78,7 @@ export const makeGetStatus = () => {
return null; return null;
} }
const regex = regexFromFilters(filters);
const regex = (accountReblog || accountBase).get('id') !== me && regexFromFilters(filters);
let filtered = false; let filtered = false;
if (statusReblog) { if (statusReblog) {

Loading…
Cancel
Save