[ENTITY][Note] If note is a reply to, notify reply's actor

This commit is contained in:
Diogo Peralta Cordeiro 2021-12-27 03:24:26 +00:00
parent c4dacd7626
commit eb761609aa
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0

View File

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