fds
This commit is contained in:
parent
4e85060b78
commit
1b24e4e2df
1 changed files with 1 additions and 2 deletions
|
@ -104,8 +104,6 @@ def post_id(pid, anything=None, v=None):
|
||||||
except Exception as e: pass
|
except Exception as e: pass
|
||||||
|
|
||||||
|
|
||||||
sort = request.values.get("sort", defaultsortingcomments)
|
|
||||||
|
|
||||||
try: pid = int(pid)
|
try: pid = int(pid)
|
||||||
except:
|
except:
|
||||||
try: pid = int(pid, 36)
|
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'
|
if 'megathread' in post.title.lower(): defaultsortingcomments = 'new'
|
||||||
elif v: defaultsortingcomments = v.defaultsortingcomments
|
elif v: defaultsortingcomments = v.defaultsortingcomments
|
||||||
else: defaultsortingcomments = "top"
|
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)
|
if post.club and not (v and (v.paid_dues or v.id == post.author_id)): abort(403)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue