Fix auto-unfold CWs when no regexp is set

Fixes #778
th-downstream
Thibaut Girka 6 years ago committed by ThibG
parent dbc1b36b61
commit 794b2dad99

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