mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:41:13 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user