Browse Source

Notify only if receiving mail

pull/4363/head
clayton 4 months ago
parent
commit
b552ce4f11
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      app/Jobs/BroadcastNotification.php

+ 1
- 0
app/Jobs/BroadcastNotification.php View File

@@ -173,6 +173,7 @@ class BroadcastNotification implements ShouldQueue
173 173
         $this->receiverIds = $this->object
174 174
             ->topic
175 175
             ->watches()
176
+            ->where('mail', true)
176 177
             ->where('user_id', '<>', $this->source->getKey())
177 178
             ->pluck('user_id')
178 179
             ->all();

Loading…
Cancel
Save