]> 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 e26811001f48c50a97978a25508b8cb3f55dcf9a..92235e85477e2240bf3fa82c0eaebb906bdc6ce4 100644 (file)
@@ -35,9 +35,7 @@ class Contacts extends BaseModule
 {
        protected function content(array $request = []): string
        {
-               $app = DI::app();
-
-               if (!local_user()) {
+               if (!DI::userSession()->getLocalUserId()) {
                        throw new HTTPException\ForbiddenException();
                }
 
@@ -55,7 +53,7 @@ class Contacts extends BaseModule
                        throw new HTTPException\NotFoundException(DI::l10n()->t('Contact not found.'));
                }
 
-               $localContactId = Model\Contact::getPublicIdByUserId(local_user());
+               $localContactId = Model\Contact::getPublicIdByUserId(DI::userSession()->getLocalUserId());
 
                DI::page()['aside'] = Widget\VCard::getHTML($contact);