diaspora/app/mailers/notification_mailers/comment_on_post.rb
Benjamin Neff eac8c7572c
Remove unused From headers
It is already added in the default_headers
2017-02-16 03:09:39 +01:00

16 lines
503 B
Ruby

module NotificationMailers
class CommentOnPost < NotificationMailers::Base
attr_accessor :comment
def set_headers(comment_id)
@comment = Comment.find(comment_id)
@headers[:in_reply_to] = @headers[:references] = "<#{@comment.parent.guid}@#{AppConfig.pod_uri.host}>"
if @comment.public?
@headers[:subject] = "Re: #{@comment.comment_email_subject}"
else
@headers[:subject] = I18n.t("notifier.comment_on_post.limited_subject")
end
end
end
end