]> git.mxchange.org Git - friendica.git/commitdiff
added url for magic link again
authorPhilipp Holzer <admin@philipp.info>
Thu, 2 May 2019 21:39:20 +0000 (23:39 +0200)
committerPhilipp Holzer <admin@philipp.info>
Thu, 2 May 2019 21:39:20 +0000 (23:39 +0200)
src/Module/AllFriends.php

index 238223aee03097164ac6d6924257074114b80642..b0e6ea1490bcf00bc519be5061ef80a39a73631c 100644 (file)
@@ -71,13 +71,13 @@ class AllFriends extends BaseModule
                        } else {
                                $connlnk = $app->getBaseURL() . '/follow/?url=' . $friend['url'];
                                $photoMenu = [
-                                       'profile' => [L10n::t('View Profile'), Model\Contact::magicLinkbyId($friend['id'])],
+                                       'profile' => [L10n::t('View Profile'), Model\Contact::magicLinkbyId($friend['id'], $friend['url'])],
                                        'follow'  => [L10n::t('Connect/Follow'), $connlnk]
                                ];
                        }
 
                        $entry = [
-                               'url'          => Model\Contact::magicLinkbyId($friend['id']),
+                               'url'          => Model\Contact::magicLinkbyId($friend['id'], $friend['url']),
                                'itemurl'      => defaults($contactDetails, 'addr', $friend['url']),
                                'name'         => $contactDetails['name'],
                                'thumb'        => ProxyUtils::proxifyUrl($contactDetails['thumb'], false, ProxyUtils::SIZE_THUMB),