Explorar el Código

Don't filter own toots (fixes #8289) (#8298)

master
ThibG hace 5 años
committed by Eugen Rochko
padre
commit
28163528e5
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      app/javascript/mastodon/selectors/index.js

+ 2
- 1
app/javascript/mastodon/selectors/index.js Ver fichero

@@ -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 => {


Cargando…
Cancelar
Guardar