remotes/1693045480750635534/spooky-22
Aevann1 2022-05-17 18:16:56 +02:00
parent 0e8a2ad1c8
commit c80dcaf706
2 changed files with 20 additions and 19 deletions

View File

@ -28,23 +28,7 @@ AJ_REPLACEMENTS = {
' TO ': " TOO ",
}
if SITE_NAME == 'Cringetopia':
SLURS = {
"retarded": "neurodivergent",
"retard": "neurodivergent",
"faggot": "cute twink",
"fag": "cute twink",
"n1gger": "πŸ€",
"nlgger": "πŸ€",
"nigger": "πŸ€",
"uss liberty incident": "tragic accident aboard the USS Liberty",
"lavon affair": "Lavon Misunderstanding",
"i hate marsey": "i love marsey",
"autistic": "neurodivergent",
"holohoax": "i tried to claim the Holocaust didn't happen because I am a pencil-dicked imbecile and the word filter caught me lol",
"i hate carp": "i love Carp",
"heil hitler": "hello kitty", }
else:
if SITE_NAME == 'rDrama':
SLURS = {
"california": "commiefornia",
"hollywood": "hollyweird",
@ -111,6 +95,23 @@ else:
" pedo ": " libertarian ",
" pedos ": " libertarians ",
}
else:
SLURS = {
"retarded": "neurodivergent",
"retard": "neurodivergent",
"faggot": "cute twink",
"fag": "cute twink",
"n1gger": "πŸ€",
"nlgger": "πŸ€",
"nigger": "πŸ€",
"uss liberty incident": "tragic accident aboard the USS Liberty",
"lavon affair": "Lavon Misunderstanding",
"i hate marsey": "i love marsey",
"autistic": "neurodivergent",
"holohoax": "i tried to claim the Holocaust didn't happen because I am a pencil-dicked imbecile and the word filter caught me lol",
"i hate carp": "i love Carp",
"heil hitler": "hello kitty",
}
single_words = "|".join([slur.lower() for slur in SLURS.keys()])

View File

@ -788,8 +788,8 @@ def settings_name_change(v):
return redirect("/settings/profile")
@app.post("/settings/song_change")
@limiter.limit("2/second;10/day")
@limiter.limit("2/second;10/day", key_func=lambda:f'{request.host}-{session.get("lo_user")}')
@limiter.limit("3/second;10/day")
@limiter.limit("3/second;10/day", key_func=lambda:f'{request.host}-{session.get("lo_user")}')
@auth_required
def settings_song_change(v):
song=request.values.get("song").strip()