forked from rDrama/rDrama
fix JC bug
parent
38d8fe2647
commit
a71b21c1b6
|
@ -246,8 +246,9 @@ def morecomments(v, cid):
|
||||||
if v:
|
if v:
|
||||||
# shadowban check is done in sort_objects i think
|
# shadowban check is done in sort_objects i think
|
||||||
# output is needed: see comments.py
|
# output is needed: see comments.py
|
||||||
comments, output = get_comments_v_properties(v, True, lambda c:bool(c.parent_comment_id == int(cid)), Comment.top_comment_id == tcid, Comment.level > 9)
|
comments, output = get_comments_v_properties(v, True, None, Comment.top_comment_id == tcid, Comment.level > 9)
|
||||||
comments = output
|
comments = comments.filter(Comment.parent_comment_id == cid)
|
||||||
|
comments = [c[0] for c in comments.all()]
|
||||||
else:
|
else:
|
||||||
c = get_comment(cid)
|
c = get_comment(cid)
|
||||||
comments = c.replies(sort=request.values.get('sort'), v=v, db=g.db)
|
comments = c.replies(sort=request.values.get('sort'), v=v, db=g.db)
|
||||||
|
|
Loading…
Reference in New Issue