in moderation auto-message, tell the user it's automated
This commit is contained in:
parent
1452e1c34d
commit
c576f86e4d
|
@ -30,7 +30,7 @@ class Moderation < ActiveRecord::Base
|
||||||
m.body << "\n" <<
|
m.body << "\n" <<
|
||||||
"The reason given:\n" <<
|
"The reason given:\n" <<
|
||||||
"\n" <<
|
"\n" <<
|
||||||
"> *#{self.reason}*"
|
"> *#{self.reason}*\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
elsif self.comment
|
elsif self.comment
|
||||||
|
@ -39,13 +39,13 @@ class Moderation < ActiveRecord::Base
|
||||||
m.body = "Your comment on [#{self.comment.story.title}](" <<
|
m.body = "Your comment on [#{self.comment.story.title}](" <<
|
||||||
"#{self.comment.story.comments_url}) has been moderated:\n" <<
|
"#{self.comment.story.comments_url}) has been moderated:\n" <<
|
||||||
"\n" <<
|
"\n" <<
|
||||||
"> *#{self.comment.comment}*"
|
"> *#{self.comment.comment}*\n"
|
||||||
|
|
||||||
if self.reason.present?
|
if self.reason.present?
|
||||||
m.body << "\n" <<
|
m.body << "\n" <<
|
||||||
"The reason given:\n" <<
|
"The reason given:\n" <<
|
||||||
"\n" <<
|
"\n" <<
|
||||||
"> *#{self.reason}*"
|
"> *#{self.reason}*\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -53,6 +53,9 @@ class Moderation < ActiveRecord::Base
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
m.body << "\n" <<
|
||||||
|
"*This is an automated message.*"
|
||||||
|
|
||||||
m.save
|
m.save
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue