This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
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
3d5d899094
commit
70d346ea95
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
{
Write
Preview
Loading…
Cancel
Save