mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 07:37:55 +08:00
DEV: Remove enable_whispers site setting (#19196)
* DEV: Remove enable_whispers site setting Whispers are enabled as long as there is at least one group allowed to whisper, see whispers_allowed_groups site setting. * DEV: Always enable whispers for admins if at least one group is allowed.
This commit is contained in:
@ -286,7 +286,7 @@ module Email
|
||||
Email::Receiver.update_bounce_score(@from_email, SiteSetting.hard_bounce_score)
|
||||
end
|
||||
|
||||
if SiteSetting.enable_whispers? && @from_user&.staged?
|
||||
if SiteSetting.whispers_allowed_groups.present? && @from_user&.staged?
|
||||
return if email_log.blank?
|
||||
|
||||
if post.present? && topic.present? && topic.archetype == Archetype.private_message
|
||||
|
Reference in New Issue
Block a user