From f388d62c00cb4124545081a8c6f6cb32c3b1fd0a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 27 Nov 2021 19:29:43 +0200 Subject: [PATCH] fddfs --- files/helpers/const.py | 11 +++++++---- files/routes/users.py | 3 +-- files/templates/reportbugs.html | 20 -------------------- 3 files changed, 8 insertions(+), 26 deletions(-) delete mode 100644 files/templates/reportbugs.html diff --git a/files/helpers/const.py b/files/helpers/const.py index cff250917c..14e413d03a 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -143,6 +143,8 @@ if SITE == 'rdrama.net': LLM_ID = 253 DAD_ID = 2513 MOM_ID = 4588 + BUG_THREAD = 18459 + EMOJI_THREAD = 22479 elif SITE == "pcmemes.net": BASEDBOT_ID = 800 NOTIFICATIONS_ID = 1046 @@ -159,6 +161,8 @@ elif SITE == "pcmemes.net": LLM_ID = 0 DAD_ID = 0 MOM_ID = 0 + BUG_THREAD = 4103 + EMOJI_THREAD = 0 else: BASEDBOT_ID = 0 NOTIFICATIONS_ID = 1 @@ -175,6 +179,8 @@ else: LLM_ID = 0 DAD_ID = 0 MOM_ID = 0 + BUG_THREAD = 0 + EMOJI_THREAD = 0 PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6' PUSHER_KEY = environ.get("PUSHER_KEY", "").strip() @@ -756,7 +762,4 @@ TROLLTITLES = [ "[META] Getting really sick of @{username}’s shit", "Pretty sure this is @{username}'s Reddit account", "Hey jannies can you please ban @{username}", -] - -BUG_THREAD = 18459 -EMOJI_THREAD = 22479 +] \ No newline at end of file diff --git a/files/routes/users.py b/files/routes/users.py index 4d6eba7076..371487a469 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -331,8 +331,7 @@ def unsubscribe(v, post_id): @app.get("/report_bugs") @auth_required def reportbugs(v): - if request.host == 'rdrama.net': return redirect('https://rdrama.net/post/18459') - return render_template("reportbugs.html", v=v) + return redirect(f'https://rdrama.net/post/{BUG_THREAD}') @app.post("/@/message") @limiter.limit("1/second") diff --git a/files/templates/reportbugs.html b/files/templates/reportbugs.html deleted file mode 100644 index 736f14fedd..0000000000 --- a/files/templates/reportbugs.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "default.html" %} - -{% block content %} - {% include "emoji_modal.html" %} -

Report bugs or give suggestions

-
-

-		
-		

-		
-		 
-		
-		 
-		
-		 
-		
-		 
-		
-	
-{% endblock %} \ No newline at end of file