]> 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 e6cd4f852596ebaefde47cc2935d527259ad329e..4233ad6541b5c410adfe6cdfdfdbe67f60525e65 100644 (file)
@@ -22,9 +22,9 @@ use Psr\Log\LoggerInterface;
  * @property string hash
  * @property string datetime
  * @property bool   blocked
- * @property bool   ignored
+ * @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']);
@@ -116,7 +116,7 @@ final class Introduction extends BaseModel
         */
        public function ignore()
        {
-               $this->ignored = true;
+               $this->ignore = true;
 
                return $this->intro->update($this);
        }