diff --git a/views.py b/views.py index f9dbe3c..e3327bf 100644 --- a/views.py +++ b/views.py @@ -564,7 +564,7 @@ def add_comment(request, post_id, parent_id): emails[email] = comment.author - if post.author.email not in email: + if post.author.email not in emails: emails[post.author.email] = post.author.first_name if len(emails) > 0: