Merge pull request from GHSA-569c-22ff-pj3x

This commit is contained in:
Roman Rizzi
2020-01-16 15:17:16 -03:00
committed by GitHub
parent fe588cc7f8
commit 0c4ac2a7bc
3 changed files with 26 additions and 2 deletions

View File

@@ -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