]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/Feed.php
Retrieve contact records for the page visitor in Profile\Common module
[friendica.git] / src / Module / Debug / Feed.php
index fc9f95f07c713a3c5ee1d1ee95626feb857c146b..435245490e837540bb7f19b5d299dee5fdf8bb54 100644 (file)
@@ -48,7 +48,7 @@ class Feed extends BaseModule
 
                $this->httpClient = $httpClient;
 
-               if (!local_user()) {
+               if (!DI::userSession()->getLocalUserId()) {
                        DI::sysmsg()->addNotice($this->t('You must be logged in to use this module'));
                        $baseUrl->redirect();
                }
@@ -60,7 +60,7 @@ class Feed extends BaseModule
                if (!empty($_REQUEST['url'])) {
                        $url = $_REQUEST['url'];
 
-                       $contact = Model\Contact::getByURLForUser($url, local_user(), null);
+                       $contact = Model\Contact::getByURLForUser($url, DI::userSession()->getLocalUserId(), null);
 
                        $xml = $this->httpClient->fetch($contact['poll'], HttpClientAccept::FEED_XML);