diff --git a/files/helpers/const.py b/files/helpers/const.py index 72a9ae29b..28510f29e 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -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()]) diff --git a/files/routes/settings.py b/files/routes/settings.py index 36f177e67..85c144c8e 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -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()