Fix auto-unfold CWs when no regexp is set

Fixes #778
master
Thibaut Girka 6 years ago committed by ThibG
parent 3d5d899094
commit 70d346ea95
  1. 5
      app/javascript/flavours/glitch/util/content_warning.js

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

Loading…
Cancel
Save