]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Introduction.php
Merge pull request #8226 from nupplaphil/bug/wait_for_conn
[friendica.git] / src / Model / Introduction.php
index 68d598e3441b49e8bef6b2e96e60161169d76d3d..4233ad6541b5c410adfe6cdfdfdbe67f60525e65 100644 (file)
@@ -24,7 +24,7 @@ use Psr\Log\LoggerInterface;
  * @property bool   blocked
  * @property bool   ignore
  */
-final class Introduction extends BaseModel
+class Introduction extends BaseModel
 {
        /** @var Repository\Introduction */
        protected $intro;
@@ -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']);