[Notification][ENTITY][Activity] Avoid including sender in notification targets

This commit is contained in:
2021-12-12 06:38:07 +00:00
parent 93fa7eb0b5
commit 57beb178cc
2 changed files with 5 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ class Notification extends Component
*/
public function onNewNotification(Actor $sender, Activity $activity, array $ids_already_known = [], ?string $reason = null): bool
{
$targets = $activity->getNotificationTargets($ids_already_known);
$targets = $activity->getNotificationTargets($ids_already_known, sender_id: $sender->getId());
$this->notify($sender, $activity, $targets, $reason);
return Event::next;