From a535c7d2df199543f11477fcb4606537f1377c22 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 18 Feb 2022 10:01:21 +0200 Subject: [PATCH] v --- files/routes/awards.py | 6 ++---- files/routes/comments.py | 2 +- files/templates/authforms.html | 4 ++-- files/templates/comments.html | 4 ++-- files/templates/default.html | 4 ++-- files/templates/log.html | 4 ++-- files/templates/login.html | 2 +- files/templates/login_2fa.html | 2 +- files/templates/settings.html | 2 +- files/templates/settings2.html | 4 ++-- files/templates/sign_up.html | 2 +- files/templates/sign_up_failed_ref.html | 2 +- files/templates/submission.html | 4 ++-- files/templates/submission_listing.html | 4 ++-- files/templates/submit.html | 4 ++-- 15 files changed, 24 insertions(+), 26 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 5f6f993193..a08e7ca5cb 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -190,8 +190,7 @@ def buy(v, award): return {"message": "Award bought!"} -@app.get("/post//awards") -@app.post("/post//awards") +@app.post("/award_post/") @limiter.limit("1/second;30/minute;200/hour;1000/day") @is_not_permabanned def award_post(pid, v): @@ -424,8 +423,7 @@ def award_post(pid, v): return redirect(f"{SITE_FULL}/") -@app.get("/comment//awards") -@app.post("/comment//awards") +@app.get("/award_comment/") @limiter.limit("1/second;30/minute;200/hour;1000/day") @is_not_permabanned def award_comment(cid, v): diff --git a/files/routes/comments.py b/files/routes/comments.py index 28598934e2..1a0b700d94 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -1087,4 +1087,4 @@ def handle_wordle_action(cid, v): g.db.add(comment) g.db.commit() - return { "message" : "..." } \ No newline at end of file + return '', 204 \ No newline at end of file diff --git a/files/templates/authforms.html b/files/templates/authforms.html index f11ae3c59a..df80bb5a01 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -15,7 +15,7 @@ {% if v %} - + {% if v.agendaposter %} - + {% endif %} diff --git a/files/templates/comments.html b/files/templates/comments.html index 7e9a015346..254fafbf7e 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -486,7 +486,7 @@ {% if not c.ghost %}Votes{% endif %} {% if v %} - + @@ -720,7 +720,7 @@ {% if v %} Report - Give Award + Give Award Save diff --git a/files/templates/default.html b/files/templates/default.html index 86c55609ad..f5819aef9a 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -7,7 +7,7 @@ {% if v %} - + {% if v.agendaposter %} - + {% endif %} {% if sub and sub.css and not request.path.endswith('settings') %} diff --git a/files/templates/log.html b/files/templates/log.html index 7ac1d781de..5b7a24c5f3 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -6,7 +6,7 @@ {% block content %} {% if v %} - + {% if v.agendaposter %} - + {% endif %}
diff --git a/files/templates/login.html b/files/templates/login.html index 3916580bdf..06818c9093 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -18,7 +18,7 @@ {% endblock %} - + diff --git a/files/templates/login_2fa.html b/files/templates/login_2fa.html index 68e73fb39e..3cfa4ebe56 100644 --- a/files/templates/login_2fa.html +++ b/files/templates/login_2fa.html @@ -14,7 +14,7 @@ 2-Step Login - {{SITE_NAME}} - + diff --git a/files/templates/settings.html b/files/templates/settings.html index 7e797842a7..4ed78b0787 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -34,7 +34,7 @@ - + {% if v.agendaposter %} - + {% else %} - + {% endif %} diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index b2059441c3..c97de16646 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -31,7 +31,7 @@ {% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %} - + diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html index 50e511d7d0..6cb1851667 100644 --- a/files/templates/sign_up_failed_ref.html +++ b/files/templates/sign_up_failed_ref.html @@ -32,7 +32,7 @@ {% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %} - + diff --git a/files/templates/submission.html b/files/templates/submission.html index a313d45153..100e9f3d18 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -550,7 +550,7 @@ - + @@ -900,7 +900,7 @@ {% if not p.ghost %}Votes{% endif %} {% if v %} - Give Award + Give Award {% endif %} Copy link diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index c69e3432e5..7513334181 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -231,7 +231,7 @@ {% if not p.ghost %}Votes{% endif %} {% if v %} - Give Award + Give Award {% endif %} Copy link @@ -417,7 +417,7 @@ - + diff --git a/files/templates/submit.html b/files/templates/submit.html index 430fba7b9a..5d9915a7ad 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -26,7 +26,7 @@ {% block stylesheets %} {% if v %} - + {% if v.agendaposter %} - + {% endif %} {% endblock %}