This commit is contained in:
Aevann1 2022-04-04 23:15:25 +02:00
parent d9a58c8fd5
commit e012c17856
2 changed files with 8 additions and 5 deletions

View file

@ -261,7 +261,8 @@ def post_id(pid, anything=None, v=None, sub=None):
@limiter.limit("1/second;30/minute;200/hour;1000/day")
@auth_desired
def viewmore(v, pid, sort, offset):
pid = int(pid)
try: pid = int(pid)
except: abort(400)
post = get_post(pid, v=v)
if post.club and not (v and (v.paid_dues or v.id == post.author_id)): abort(403)