Browse Source

Bugfix - provide magic links for remote user in magicLink()

pull/6470/head
rabuzarus 2 years ago
parent
commit
528d175baa
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/Content/Text/HTML.php
  2. +1
    -1
      src/Model/Contact.php

+ 1
- 1
src/Content/Text/HTML.php View File

@ -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


+ 1
- 1
src/Model/Contact.php View File

@ -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…
Cancel
Save