diff --git a/app/models/moderation.rb b/app/models/moderation.rb index 2c5b26e..2761403 100644 --- a/app/models/moderation.rb +++ b/app/models/moderation.rb @@ -30,7 +30,7 @@ class Moderation < ActiveRecord::Base m.body << "\n" << "The reason given:\n" << "\n" << - "> *#{self.reason}*" + "> *#{self.reason}*\n" end elsif self.comment @@ -39,13 +39,13 @@ class Moderation < ActiveRecord::Base m.body = "Your comment on [#{self.comment.story.title}](" << "#{self.comment.story.comments_url}) has been moderated:\n" << "\n" << - "> *#{self.comment.comment}*" + "> *#{self.comment.comment}*\n" if self.reason.present? m.body << "\n" << "The reason given:\n" << "\n" << - "> *#{self.reason}*" + "> *#{self.reason}*\n" end else @@ -53,6 +53,9 @@ class Moderation < ActiveRecord::Base return end + m.body << "\n" << + "*This is an automated message.*" + m.save end end