Fix Introduction Diaspore sendShare()

This commit is contained in:
nupplaPhil 2020-01-29 22:20:59 +01:00
parent f2547947c9
commit da2d49ba43
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90

View file

@ -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']);