mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
notify moderators now goes to the "community" user, that saves our poor mods from a flood of pms
if any staff respond to a pm they are automatically added to the list of recipients and will start getting email notifications
This commit is contained in:
parent
c495a0b996
commit
41a1b6942d
15 changed files with 635 additions and 583 deletions
|
@ -131,8 +131,7 @@ module Discourse
|
|||
# Either returns the system_username user or the first admin.
|
||||
def self.system_user
|
||||
user = User.where(username_lower: SiteSetting.system_username).first if SiteSetting.system_username.present?
|
||||
user = User.admins.order(:id).first if user.blank?
|
||||
user
|
||||
user ||= User.admins.real.order(:id).first
|
||||
end
|
||||
|
||||
def self.store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue