[COMPONENT][Notification] Always pre-add Actor subscribers when notifying

This commit is contained in:
Diogo Peralta Cordeiro 2022-03-23 13:14:38 +00:00
parent 03f449035a
commit e63c310d70
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

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