Don't send mail to original author if they subscribe to their own RFC
This commit is contained in:
@ -126,9 +126,11 @@ class CommentsController < ApplicationController
|
|||||||
:user_id => commenter.id, :user_type => commenter.class.name)
|
:user_id => commenter.id, :user_type => commenter.class.name)
|
||||||
subscriptions.each do |subscription|
|
subscriptions.each do |subscription|
|
||||||
if (subscription.subscription_type == 'author' and current_user == request_for_comment.user) or subscription.subscription_type == 'all'
|
if (subscription.subscription_type == 'author' and current_user == request_for_comment.user) or subscription.subscription_type == 'all'
|
||||||
|
if subscription.user != current_user
|
||||||
UserMailer.got_new_comment_for_subscription(comment, subscription, current_user).deliver_now
|
UserMailer.got_new_comment_for_subscription(comment, subscription, current_user).deliver_now
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user