remotes/1693045480750635534/spooky-22
Aevann1 2021-12-31 16:01:50 +02:00
parent addc871b1b
commit e36f9384b7
2 changed files with 4 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -103,9 +103,6 @@ def post_id(pid, anything=None, v=None):
try: pid = int(pid)
except Exception as e: pass
if request.host == 'rdrama.net' and pid in [BUG_THREAD, EMOJI_THREAD]: defaultsortingcomments = 'new'
elif v: defaultsortingcomments = v.defaultsortingcomments
else: defaultsortingcomments = "top"
sort = request.values.get("sort", defaultsortingcomments)
@ -116,6 +113,10 @@ def post_id(pid, anything=None, v=None):
post = get_post(pid, v=v)
if 'megathread' in post.title.lower(): defaultsortingcomments = 'new'
elif v: defaultsortingcomments = v.defaultsortingcomments
else: defaultsortingcomments = "top"
if post.club and not (v and (v.paid_dues or v.id == post.author_id)): abort(403)
if v: