remotes/1693045480750635534/spooky-22
Aevann1 2021-12-31 16:03:11 +02:00
parent e36f9384b7
commit 21e644285f
1 changed files with 1 additions and 2 deletions

View File

@ -104,8 +104,6 @@ def post_id(pid, anything=None, v=None):
except Exception as e: pass
sort = request.values.get("sort", defaultsortingcomments)
try: pid = int(pid)
except:
try: pid = int(pid, 36)
@ -116,6 +114,7 @@ def post_id(pid, anything=None, v=None):
if 'megathread' in post.title.lower(): defaultsortingcomments = 'new'
elif v: defaultsortingcomments = v.defaultsortingcomments
else: defaultsortingcomments = "top"
sort = request.values.get("sort", defaultsortingcomments)
if post.club and not (v and (v.paid_dues or v.id == post.author_id)): abort(403)