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

14 lines
505 B
Ruby

module NotificationMailers
class PrivateMessage < NotificationMailers::Base
attr_accessor :message, :conversation, :participants
def set_headers(message_id)
@message = Message.find_by_id(message_id)
@conversation = @message.conversation
@participants = @conversation.participants
@headers[:subject] = I18n.t("notifier.private_message.subject")
@headers[:in_reply_to] = @headers[:references] = "<#{@conversation.guid}@#{AppConfig.pod_uri.host}>"
end
end
end