dmails: send automated dmails from Danbooru.config.system_user.

Sends automated dmails from `Danbooru.config.system_user`, rather than
whichever user is performing the action happens to be (usually User.admins.first).

Also adds a notice in the view that the dmail was automated.
This commit is contained in:
evazion
2017-02-23 20:15:29 -06:00
parent 1400f64338
commit b1af644f67
9 changed files with 40 additions and 28 deletions

View File

@@ -84,7 +84,7 @@ private
end
def create_dmail
Dmail.create_split(
Dmail.create_automated(
:to_id => user.id,
:title => "You have been promoted",
:body => build_messages