Browse Source

Fix auto-unfold CWs when no regexp is set

Fixes #778
closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
70d346ea95
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      app/javascript/flavours/glitch/util/content_warning.js

+ 5
- 0
app/javascript/flavours/glitch/util/content_warning.js View File

@ -4,6 +4,11 @@ export function autoUnfoldCW (settings, status) {
}
const rawRegex = settings.getIn(['content_warnings', 'filter']);
if (!rawRegex) {
return true;
}
let regex = null;
try {

Loading…
Cancel
Save