From da2d49ba4338ff0815123271013f4859152f4d2c Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Wed, 29 Jan 2020 22:20:59 +0100 Subject: [PATCH] Fix Introduction Diaspore sendShare() --- src/Model/Introduction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Introduction.php b/src/Model/Introduction.php index 68d598e34..a0774c10e 100644 --- a/src/Model/Introduction.php +++ b/src/Model/Introduction.php @@ -97,7 +97,7 @@ final class Introduction extends BaseModel if ($newRelation == Contact::FRIEND) { if ($protocol == Protocol::DIASPORA) { - $ret = Diaspora::sendShare(Contact::getById($contact['uid']), $contact); + $ret = Diaspora::sendShare(User::getById($contact['uid']), $contact); $this->logger->info('share returns', ['return' => $ret]); } elseif ($protocol == Protocol::ACTIVITYPUB) { ActivityPub\Transmitter::sendActivity('Follow', $contact['url'], $contact['uid']);