From e63c310d706891ea20278d485ce696a22b2cf83c Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Wed, 23 Mar 2022 13:14:38 +0000 Subject: [PATCH] [COMPONENT][Notification] Always pre-add Actor subscribers when notifying --- components/Notification/Notification.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/Notification/Notification.php b/components/Notification/Notification.php index 12dd805aae..0e83cfa496 100644 --- a/components/Notification/Notification.php +++ b/components/Notification/Notification.php @@ -81,6 +81,9 @@ class Notification extends Component { // Ensure targets are all actor objects and unique $effective_targets = []; + foreach ($sender->getSubscribers() as $subscriber) { + $effective_targets[$subscriber->getId()] = $subscriber; + } foreach ($targets as $target) { if (\is_int($target)) { $target_id = $target;