do not send email for own comment

This commit is contained in:
Alexander Machehin 2015-05-28 15:00:22 +05:00
parent 7dee6bb5ac
commit 2f2607d2d1
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ module Feed::Comment
if issue_comment?
commentable.subscribes.each do |subscribe|
if user_id == subscribe.user_id || can_notify_on_new_comment?(subscribe)
UserMailer.new_comment_notification(self, subscribe.user_id).deliver
if can_notify_on_new_comment?(subscribe)
UserMailer.new_comment_notification(self, subscribe.user_id).deliver unless own_comment?(subscribe.user)
ActivityFeed.create(
{
user_id: subscribe.user_id,