From 20f925afb72ea4475c337f6a50270c34f39bec43 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 28 Apr 2022 01:09:39 +0200 Subject: [PATCH] fds --- files/routes/posts.py | 7 +------ files/templates/post_actions.html | 6 ++---- files/templates/post_actions_mobile.html | 6 ++---- files/templates/settings_profile.html | 2 +- files/templates/submit.html | 10 ++++------ 5 files changed, 10 insertions(+), 21 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index fed793592..857059662 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -42,9 +42,7 @@ titleheaders = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWe @auth_required def toggle_club(pid, v): - if v.club_allowed == False: abort(403) post = get_post(pid) - if v.admin_level < 2: abort(403) post.club = not post.club g.db.add(post) @@ -1096,10 +1094,7 @@ def submit_post(v, sub=None): if len(body_html) > 40000: return error("Submission body_html too long! (max 40k characters)") - - - if request.host == 'rdrama.net' and v.admin_level < 2: club = False - else: club = bool(request.values.get("club","")) + club = bool(request.values.get("club","")) if embed and len(embed) > 1500: embed = None diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index 25f50ca81..b45b6649a 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -50,10 +50,8 @@ Unpin {% endif %} - {% if v.admin_level > 1 or v.id == p.author.id and request.host != 'rdrama.net' %} - Mark club - Unmark club - {% endif %} + Mark club + Unmark club {% if v.admin_level > 1 %} {% if "/reported/" in request.path %} diff --git a/files/templates/post_actions_mobile.html b/files/templates/post_actions_mobile.html index c461c9a9d..782a591b6 100644 --- a/files/templates/post_actions_mobile.html +++ b/files/templates/post_actions_mobile.html @@ -38,10 +38,8 @@ - {% if request.host != 'rdrama.net' or v.admin_level > 1 %} - - - {% endif %} + + diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 927c75440..2397cc864 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -709,7 +709,7 @@ - + {% include "emoji_modal.html" %} {% include "gif_modal.html" %} diff --git a/files/templates/submit.html b/files/templates/submit.html index 1084cec71..3ae5b075c 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -179,12 +179,10 @@ - {% if request.host != 'rdrama.net' or v.admin_level > 1 %} -
- - -
- {% endif %} +
+ + +