FIX: system user edits should not generate notifications

This commit is contained in:
Régis Hanol
2018-01-30 22:21:07 +01:00
parent aab2d102ff
commit b2f18fc98f
2 changed files with 19 additions and 0 deletions

View File

@@ -483,6 +483,7 @@ class PostRevisor
end
def alert_users
return if @editor.id == Discourse::SYSTEM_USER_ID
PostAlerter.new.after_save_post(@post)
end