diff options
Diffstat (limited to 'app/models/comment.rb')
-rw-r--r-- | app/models/comment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb index 16edcf412..c9e8f6c2c 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -59,7 +59,7 @@ class Comment < ActiveRecord::Base end def notification_type(user, person) - if self.post.author == user.person + if (self.post.author == user.person) && (self.author != user.person) return Notifications::CommentOnPost elsif self.post.comments.where(:author_id => user.person.id) != [] && self.author_id != user.person.id return Notifications::AlsoCommented |