]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact.php
Issue 9229: Show unfollow with known contacts
[friendica.git] / src / Module / Contact.php
index 03d67aa08944a5772451d2a973f55e092f0f5f4e..659380fbef3ba7bf3a08197bc923ff038fcdf2de 100644 (file)
@@ -952,7 +952,7 @@ class Contact extends BaseModule
                if (DBA::isResult($contact)) {
                        DI::page()['aside'] = '';
 
-                       $profiledata = Model\Contact::getByURL($contact['url'], false);
+                       $profiledata = Model\Contact::getByURLForUser($contact['url'], local_user());
 
                        Model\Profile::load($a, '', $profiledata, true);
 
@@ -975,7 +975,7 @@ class Contact extends BaseModule
                if (DBA::isResult($contact)) {
                        DI::page()['aside'] = '';
 
-                       $profiledata = Model\Contact::getByURL($contact['url'], false);
+                       $profiledata = Model\Contact::getByURLForUser($contact['url'], local_user());
 
                        if (local_user() && in_array($profiledata['network'], Protocol::FEDERATED)) {
                                $profiledata['remoteconnect'] = DI::baseUrl() . '/follow?url=' . urlencode($profiledata['url']);