From eb761609aad7a0dda3c284cfeedfb87bcc0fc600 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Mon, 27 Dec 2021 03:24:26 +0000 Subject: [PATCH] [ENTITY][Note] If note is a reply to, notify reply's actor --- src/Entity/Note.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Entity/Note.php b/src/Entity/Note.php index 978f008230..f96ee7d004 100644 --- a/src/Entity/Note.php +++ b/src/Entity/Note.php @@ -426,6 +426,7 @@ class Note extends Entity if (!\array_key_exists('object-related', $ids_already_known)) { if (!is_null($parent = $this->getReplyToNote())) { + $target_ids[] = $parent->getActorId(); array_push($target_ids, ...$parent->getNotificationTargetIds()); } } else { @@ -464,6 +465,7 @@ class Note extends Entity if (!\array_key_exists('object-related', $ids_already_known)) { if (!is_null($parent = $this->getReplyToNote())) { + $mentioned[] = $parent->getActor(); array_push($mentioned, ...$parent->getNotificationTargets()); } } else {