From a9f6f5a0e08abedb95d1d5c529a8f676777c7c73 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 19 Mar 2022 18:19:02 +0200 Subject: [PATCH] post --- files/routes/subs.py | 5 +-- files/templates/admin/alt_votes.html | 6 ++-- files/templates/admin/app.html | 2 +- files/templates/admin/awards.html | 2 +- files/templates/admin/badge_grant.html | 2 +- files/templates/admin/badge_remove.html | 2 +- files/templates/admin/banned_domains.html | 2 +- files/templates/admin/sidebar.html | 2 +- files/templates/award_modal.html | 2 +- files/templates/ban_modal.html | 2 +- files/templates/comments.html | 8 ++--- files/templates/contact.html | 2 +- files/templates/errors/nsfw.html | 2 +- files/templates/home.html | 20 +++++++---- files/templates/login.html | 2 +- files/templates/login_2fa.html | 8 ++--- files/templates/oauth.html | 12 +++---- files/templates/reset_password.html | 6 ++-- files/templates/settings.html | 8 ++--- files/templates/settings_apps.html | 8 ++--- files/templates/settings_blocks.html | 2 +- files/templates/settings_css.html | 2 +- files/templates/settings_filters.html | 2 +- files/templates/settings_profile.html | 38 ++++++++++---------- files/templates/settings_profilecss.html | 2 +- files/templates/settings_security.html | 10 +++--- files/templates/sign_up.html | 8 ++--- files/templates/sub/exilees.html | 2 +- files/templates/sub/mods.html | 6 ++-- files/templates/sub/settings.html | 8 ++--- files/templates/submission.html | 8 ++--- files/templates/submit.html | 2 +- files/templates/userpage.html | 44 +++++++++++------------ 33 files changed, 123 insertions(+), 114 deletions(-) diff --git a/files/routes/subs.py b/files/routes/subs.py index 45fb64a7d..11773a252 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -460,9 +460,10 @@ def sub_sidebar(v, sub): return redirect(f'/h/{sub.name}/settings') -@app.get("/sub_toggle/") +@app.post("/sub_toggle") @auth_required -def sub_toggle(mode, v): +def sub_toggle(v): + mode = request.values.get('mode') try: mode = int(mode) except: abort(400) diff --git a/files/templates/admin/alt_votes.html b/files/templates/admin/alt_votes.html index 69751aa93..63a832cfc 100644 --- a/files/templates/admin/alt_votes.html +++ b/files/templates/admin/alt_votes.html @@ -74,9 +74,9 @@ Link Accounts
- - - + + +
diff --git a/files/templates/admin/app.html b/files/templates/admin/app.html index 9d62cdf28..0b31c23f4 100644 --- a/files/templates/admin/app.html +++ b/files/templates/admin/app.html @@ -19,7 +19,7 @@
- + diff --git a/files/templates/admin/awards.html b/files/templates/admin/awards.html index 164bbacb9..aed7bb5cb 100644 --- a/files/templates/admin/awards.html +++ b/files/templates/admin/awards.html @@ -36,7 +36,7 @@
User Award Grant
- +
diff --git a/files/templates/admin/badge_grant.html b/files/templates/admin/badge_grant.html index 9987aa7f7..984f49222 100644 --- a/files/templates/admin/badge_grant.html +++ b/files/templates/admin/badge_grant.html @@ -36,7 +36,7 @@
Badge Grant
- +
diff --git a/files/templates/admin/badge_remove.html b/files/templates/admin/badge_remove.html index 14654b8c4..9c1be65a0 100644 --- a/files/templates/admin/badge_remove.html +++ b/files/templates/admin/badge_remove.html @@ -36,7 +36,7 @@
Badge Remove
- +
diff --git a/files/templates/admin/banned_domains.html b/files/templates/admin/banned_domains.html index d55f6ed8c..e7447de7f 100644 --- a/files/templates/admin/banned_domains.html +++ b/files/templates/admin/banned_domains.html @@ -28,7 +28,7 @@ - + diff --git a/files/templates/admin/sidebar.html b/files/templates/admin/sidebar.html index ab5d6e1c4..c0d687faa 100644 --- a/files/templates/admin/sidebar.html +++ b/files/templates/admin/sidebar.html @@ -26,7 +26,7 @@
- +
diff --git a/files/templates/award_modal.html b/files/templates/award_modal.html index 8f59f0d61..d97e223e8 100644 --- a/files/templates/award_modal.html +++ b/files/templates/award_modal.html @@ -10,7 +10,7 @@