forked from GNUsocial/gnu-social
		
	[ENTITY][Note] If note is a reply to, notify reply's actor
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user