diff --git a/pillar/web/nodes/custom/comments.py b/pillar/web/nodes/custom/comments.py index 7ccd2e37..e04fdca2 100644 --- a/pillar/web/nodes/custom/comments.py +++ b/pillar/web/nodes/custom/comments.py @@ -183,7 +183,7 @@ def comments_for_node(node_id): some_comment['_current_user_rating'] = None # tri-state boolean if current_user.is_authenticated: - for rating in comment.properties.ratings or (): + for rating in some_comment.properties.ratings or (): if rating.user != current_user.objectid: continue