Commit 29540d6f 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 1854c3f7
......@@ -466,6 +466,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