]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/Contacts.php
Removed redundant maximagesize = INF statements
[friendica.git] / src / Module / Contact / Contacts.php
index 87e107988443e44c00c622be5e091d01f5c06004..92235e85477e2240bf3fa82c0eaebb906bdc6ce4 100644 (file)
@@ -25,7 +25,6 @@ use Friendica\BaseModule;
 use Friendica\Content\Pager;
 use Friendica\Content\Widget;
 use Friendica\Core\Renderer;
-use Friendica\Core\Session;
 use Friendica\DI;
 use Friendica\Model;
 use Friendica\Model\User;
@@ -36,7 +35,7 @@ class Contacts extends BaseModule
 {
        protected function content(array $request = []): string
        {
-               if (!Session::getLocalUser()) {
+               if (!DI::userSession()->getLocalUserId()) {
                        throw new HTTPException\ForbiddenException();
                }
 
@@ -54,7 +53,7 @@ class Contacts extends BaseModule
                        throw new HTTPException\NotFoundException(DI::l10n()->t('Contact not found.'));
                }
 
-               $localContactId = Model\Contact::getPublicIdByUserId(Session::getLocalUser());
+               $localContactId = Model\Contact::getPublicIdByUserId(DI::userSession()->getLocalUserId());
 
                DI::page()['aside'] = Widget\VCard::getHTML($contact);