make post.new work when viewing comment

pull/64/head
Aevann1 2022-12-10 19:06:28 +02:00
parent 06e1195189
commit cd9591cd28
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None, sub=None):
context -= 1
top_comment = c
if v: defaultsortingcomments = v.defaultsortingcomments
if post.new: defaultsortingcomments = 'new'
elif v: defaultsortingcomments = v.defaultsortingcomments
else: defaultsortingcomments = "hot"
sort=request.values.get("sort", defaultsortingcomments)