forked from rDrama/rDrama
fdgd
parent
73d0afa06a
commit
06d45a2277
|
@ -570,7 +570,7 @@ def api_comment(v):
|
|||
v.comment_count = g.db.query(Comment.id).options(lazyload('*')).filter(Comment.author_id == v.id, Comment.parent_submission != None).filter_by(is_banned=False, deleted_utc=0).count()
|
||||
g.db.add(v)
|
||||
|
||||
parent_post.comment_count = g.db.query(Comment.id).options(lazyload('*')).filter_by(parent_submission=parent_post.id).count()
|
||||
parent_post.comment_count += 1
|
||||
g.db.add(parent_post)
|
||||
|
||||
c.voted = 1
|
||||
|
|
Loading…
Reference in New Issue