[ENTITY][Note] If note is a reply to, notify reply's actor
This commit is contained in:
parent
c4dacd7626
commit
eb761609aa
@ -426,6 +426,7 @@ class Note extends Entity
|
|||||||
|
|
||||||
if (!\array_key_exists('object-related', $ids_already_known)) {
|
if (!\array_key_exists('object-related', $ids_already_known)) {
|
||||||
if (!is_null($parent = $this->getReplyToNote())) {
|
if (!is_null($parent = $this->getReplyToNote())) {
|
||||||
|
$target_ids[] = $parent->getActorId();
|
||||||
array_push($target_ids, ...$parent->getNotificationTargetIds());
|
array_push($target_ids, ...$parent->getNotificationTargetIds());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -464,6 +465,7 @@ class Note extends Entity
|
|||||||
|
|
||||||
if (!\array_key_exists('object-related', $ids_already_known)) {
|
if (!\array_key_exists('object-related', $ids_already_known)) {
|
||||||
if (!is_null($parent = $this->getReplyToNote())) {
|
if (!is_null($parent = $this->getReplyToNote())) {
|
||||||
|
$mentioned[] = $parent->getActor();
|
||||||
array_push($mentioned, ...$parent->getNotificationTargets());
|
array_push($mentioned, ...$parent->getNotificationTargets());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user