[Notification][ENTITY][Activity] Avoid including sender in notification targets
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user