From 46a0bad6a71b28269f4656cdefc2fb48314e6e63 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 1 Jul 2019 09:26:04 -0100 Subject: add actor Signed-off-by: Maxence Lange --- lib/Interfaces/Object/FollowInterface.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/Interfaces/Object/FollowInterface.php b/lib/Interfaces/Object/FollowInterface.php index 70326087..304304f1 100644 --- a/lib/Interfaces/Object/FollowInterface.php +++ b/lib/Interfaces/Object/FollowInterface.php @@ -286,6 +286,7 @@ class FollowInterface implements IActivityPubInterface { $notification = AP::$activityPub->getItemFromType(SocialAppNotification::TYPE); $notification->setDetail('url', $follower->getId()); $notification->setDetail('account', $follower->getAccount()); + $notification->setDetailItem('actor', $follower); $notification->setAttributedTo($follow->getActorId()) ->setId($follow->getId() . '/notification') ->setSubType(Follow::TYPE) -- cgit v1.2.3