diff --git a/files/routes/posts.py b/files/routes/posts.py index acec710a3..59ddaca5f 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1056,7 +1056,7 @@ def submit_post(v, sub=None): if ban.reason: reason += f" {ban.reason}" return error(reason) - if v.club_allowed == False: club = False + if request.host == 'rdrama.net': club = False else: club = bool(request.values.get("club","")) if embed and len(embed) > 1500: embed = None @@ -1065,7 +1065,7 @@ def submit_post(v, sub=None): post = Submission( private=bool(request.values.get("private","")), - club=False, + club=club, author_id=v.id, over_18=bool(request.values.get("over_18","")), new=bool(request.values.get("new","")), diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index df0d3ec11..8ccb8faa2 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -50,7 +50,7 @@ Unpin {% endif %} - {% if v.admin_level > 1 %} + {% if v.admin_level > 1 or v.id == p.author.id and request.host != 'rdrama.net' %} Mark club Unmark club {% endif %} diff --git a/files/templates/post_actions_mobile.html b/files/templates/post_actions_mobile.html index 6967b79cf..e523261c2 100644 --- a/files/templates/post_actions_mobile.html +++ b/files/templates/post_actions_mobile.html @@ -37,11 +37,11 @@ - + {% endif %} diff --git a/files/templates/submit.html b/files/templates/submit.html index a17be39e9..b8e31bc3a 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -178,13 +178,13 @@ - + {% endif %}