Browse Source

Fix filtering behaviors

closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
249b7c7c12
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      app/javascript/flavours/glitch/components/status.js

+ 3
- 2
app/javascript/flavours/glitch/components/status.js View File

@ -476,7 +476,7 @@ class Status extends ImmutablePureComponent {
featured,
...other
} = this.props;
const { isExpanded, isCollapsed } = this.state;
const { isExpanded, isCollapsed, forceFilter } = this.state;
let background = null;
let attachments = null;
let media = null;
@ -496,7 +496,8 @@ class Status extends ImmutablePureComponent {
);
}
if ((status.get('filtered') || status.getIn(['reblog', 'filtered'])) && (this.state.forceFilter === true || settings.get('filtering_behavior') !== 'content_warning')) {
const filtered = (status.get('filtered') || status.getIn(['reblog', 'filtered'])) && settings.get('filtering_behavior') !== 'content_warning';
if (forceFilter === undefined ? filtered : forceFilter) {
const minHandlers = this.props.muted ? {} : {
moveUp: this.handleHotkeyMoveUp,
moveDown: this.handleHotkeyMoveDown,

Loading…
Cancel
Save