Commit 99f4760a authored by Timothy Andrew's avatar Timothy Andrew

Don't send notifications to ghost users.

We already skip sending notifications to blocked users. Simply add ghost users
to this list.
parent 8ffd677c
......@@ -483,6 +483,7 @@ class NotificationService
users = users.to_a.compact.uniq
users = users.reject(&:blocked?)
users = users.reject(&:ghost?)
users.reject do |user|
global_notification_setting = user.global_notification_setting
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment