mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request from GHSA-569c-22ff-pj3x
This commit is contained in:
@@ -509,7 +509,7 @@ class PostAlerter
|
||||
|
||||
def notify_users(users, type, post, opts = {})
|
||||
users = [users] unless users.is_a?(Array)
|
||||
users = users.reject { |u| u.staged? } if post.topic&.private_message?
|
||||
users.reject!(&:staged?) if post.topic&.private_message?
|
||||
|
||||
warn_if_not_sidekiq
|
||||
|
||||
|
||||
Reference in New Issue
Block a user