remotes/1693045480750635534/spooky-22
Aevann1 2021-08-06 18:50:56 +02:00
parent 8a2f4030c8
commit 58dada2303
1 changed files with 2 additions and 1 deletions

View File

@ -187,9 +187,10 @@ def get_comment(i, v=None, graceful=False, **kwargs):
)
).first()
vt = g.db.query(CommentVote).filter_by(user_id=v.id, comment_id=Comment.id).first()
comment._is_blocking = block and block.user_id == v.id
comment._is_blocked = block and block.target_id == v.id
comment._voted = g.db.query(CommentVote).filter_by(user_id=v.id, comment_id=Comment.id).first().vote_type
comment._voted = vt.vote_type if vt else 0
else:
comment = g.db.query(Comment).filter(Comment.id == i).first()