From: rabuzarus Date: Fri, 18 Jan 2019 16:50:21 +0000 (+0100) Subject: Bugfix - provide magic links for remote user in magicLink() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=528d175baa803035a8cc44ce7bda729911f1fd85;p=friendica.git Bugfix - provide magic links for remote user in magicLink() --- diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index f7ac040eec..a3ef8d81fc 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -889,7 +889,7 @@ class HTML } /** - * @brief Format contacts as picture links or as texxt links + * @brief Format contacts as picture links or as text links * * @param array $contact Array with contacts which contains an array with * int 'id' => The ID of the contact diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 408a1ade4b..52bcc3b54b 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2089,7 +2089,7 @@ class Contact extends BaseObject */ public static function magicLink($contact_url, $url = '') { - if (!local_user() && remote_user()) { + if (!local_user() && !remote_user()) { return $url ?: $contact_url; // Equivalent to: ($url != '') ? $url : $contact_url; }