Add unsubscribe link to emails and cleanup user mailer

This commit is contained in:
Maximilian Grundke
2017-09-13 14:37:10 +02:00
parent b1f790dcde
commit 85928361cb
5 changed files with 21 additions and 18 deletions

View File

@ -126,7 +126,7 @@ class CommentsController < ApplicationController
:user_id => commenter.id, :user_type => commenter.class.name)
subscriptions.each do |subscription|
if (subscription.subscription_type == 'author' and current_user == request_for_comment.user) or subscription.subscription_type == 'all'
UserMailer.got_new_comment_for_subscription(comment, request_for_comment, request_for_comment.user, current_user).deliver_now
UserMailer.got_new_comment_for_subscription(comment, subscription, current_user).deliver_now
end
end
end