X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FIntroduction.php;h=8b939aa2a58def146def3905bcbbc523806b6776;hb=7b7132971a64a92a685a5fd860fe4709dce1765a;hp=e6cd4f852596ebaefde47cc2935d527259ad329e;hpb=012aa0f8a0a935f360ed3f93f7f2e80369b980e2;p=friendica.git diff --git a/src/Model/Introduction.php b/src/Model/Introduction.php index e6cd4f8525..8b939aa2a5 100644 --- a/src/Model/Introduction.php +++ b/src/Model/Introduction.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model; @@ -22,9 +41,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 +116,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 +135,7 @@ final class Introduction extends BaseModel */ public function ignore() { - $this->ignored = true; + $this->ignore = true; return $this->intro->update($this); }