forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-04-22 16:15:17 +02:00
parent ac4da7516d
commit f30b97d513
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ SLURS = {
"oldfag": "oldstrag",
"faggotry": "cute twinkry",
"faggot": "cute twink",
"fag": "cute twink",
" fag ": "cute twink",
"pedophile": "libertarian",
" pedo": "libertarian",
"kill yourself": "keep yourself safe",
@ -713,7 +713,7 @@ email_regex = re.compile('([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(\.[A-Z|
utm_regex = re.compile('utm_[a-z]+=[a-z0-9_]+&', flags=re.A)
utm_regex2 = re.compile('[?&]utm_[a-z]+=[a-z0-9_]+', flags=re.A)
slur_regex = re.compile(f"(<p>[^<]*)({single_words.upper()})", flags=re.I|re.A)
slur_regex = re.compile(f"(<p>[^<]*)({single_words})", flags=re.I|re.A)
slur_regex_upper = re.compile(f"(<p>[^<]*)({single_words.upper()})", flags=re.A)
torture_regex = re.compile('(^|\s)(i|me) ', flags=re.I|re.A)
torture_regex2 = re.compile("(^|\s)i'm ", flags=re.I|re.A)

View File

@ -46,7 +46,7 @@ def toggle_club(pid, v):
if v.club_allowed == False: abort(403)
post = get_post(pid)
if post.author_id != v.id and v.admin_level < 2: abort(403)
if v.admin_level < 2: abort(403)
post.club = not post.club
g.db.add(post)