mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 22:27:49 +08:00
DEV: don't send moderator welcome message to first admin. (#26719)
We already skipping the admin welcome message for the first admin user. We should also skip the moderator message.
This commit is contained in:
@ -563,7 +563,7 @@ class User < ActiveRecord::Base
|
||||
|
||||
def enqueue_staff_welcome_message(role)
|
||||
return unless staff?
|
||||
return if role == :admin && User.real.where(admin: true).count == 1
|
||||
return if is_singular_admin?
|
||||
|
||||
Jobs.enqueue(
|
||||
:send_system_message,
|
||||
|
Reference in New Issue
Block a user