forked from rDrama/rDrama
sdfds
parent
221c1640e3
commit
73d0afa06a
|
@ -286,6 +286,7 @@ def api_comment(v):
|
|||
body=body[:10000]
|
||||
)
|
||||
|
||||
c.upvotes = 1
|
||||
g.db.add(c)
|
||||
g.db.flush()
|
||||
|
||||
|
@ -563,6 +564,7 @@ def api_comment(v):
|
|||
|
||||
g.db.add(vote)
|
||||
|
||||
|
||||
cache.delete_memoized(comment_idlist)
|
||||
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue