fd
This commit is contained in:
parent
76ece07cbf
commit
19b85ebcdd
3 changed files with 6 additions and 8 deletions
|
@ -190,6 +190,7 @@ def get_comment(i, v=None, graceful=False, **kwargs):
|
|||
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
|
||||
print(vt.vote_type)
|
||||
comment.voted = vt.vote_type if vt else 0
|
||||
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue