Permalink
Browse files

Only email approved comments

  • Loading branch information...
1 parent b9be45d commit f0cb8e25fbcf85486ff101a274da450795bd3569 @andrew committed Jun 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/comment.rb
View
@@ -21,7 +21,7 @@ def set_parent_delta
end
def email_post_author
- Notifier.deliver_new_comment_alert(self) unless user_id == post.user_id
+ Notifier.deliver_new_comment_alert(self) if (user_id != post.user_id) && approved
end
def anonymous?

0 comments on commit f0cb8e2

Please sign in to comment.