fds
This commit is contained in:
parent
97aba453c2
commit
c2fee842f2
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue