mirror of
https://github.com/friendica/friendica
synced 2025-04-21 02:30:11 +00:00
Add Model\Introduction class to DI registry
This commit is contained in:
parent
2cb449a0d5
commit
df0c05d635
5 changed files with 10 additions and 15 deletions
|
@ -30,9 +30,7 @@ class FollowRequests extends Api
|
|||
{
|
||||
parent::post($parameters);
|
||||
|
||||
/** @var Introduction $Intro */
|
||||
$Intro = self::getClass(Introduction::class);
|
||||
$Intro->fetch(['id' => $parameters['id'], 'uid' => self::$current_user_id]);
|
||||
$Intro = DI::intro()->fetch(['id' => $parameters['id'], 'uid' => self::$current_user_id]);
|
||||
|
||||
$contactId = $Intro->{'contact-id'};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue