don't message moderators about their own moderations/hat usage

Fix #429
This commit is contained in:
Peter Bhat Harkins 2019-03-20 09:11:24 -05:00
parent efe3505811
commit 6a637b49fe
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ class Moderation < ApplicationRecord
return
end
return if m.recipient_user_id == m.author_user_id
m.body << "\n" <<
"*This is an automated message.*"