This commit is contained in:
Aevann1 2022-02-05 20:47:21 +02:00
parent 15cf34adee
commit 0b7f586721
12 changed files with 43 additions and 8 deletions

View file

@ -760,7 +760,9 @@ def thumbnail_thread(pid):
@limiter.limit("1/second;6/minute;200/hour;1000/day")
@auth_required
def submit_post(v, sub=None):
if not sub: sub = request.values.get("sub")
if sub and sub not in subs: sub = None
if v.is_suspended: return {"error": "You can't perform this action while banned."}, 403
if v and v.patron: