mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Bugfix - provide magic links for remote user in magicLink()
This commit is contained in:
parent
678004e15a
commit
528d175baa
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue