From: Hypolite Petovan Date: Mon, 10 Jun 2019 23:10:39 +0000 (-0400) Subject: Prevents an endless loop when only the non-public contact is available in Contact... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0fbfb7c970d5a2b7ecc8fb3cf301422d84adefff;p=friendica.git Prevents an endless loop when only the non-public contact is available in Contact::magicLinkByContact --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index a0bbdd1049..01c30fad71 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2355,6 +2355,9 @@ class Contact extends BaseObject return $url ?: $contact_url; // Equivalent to: ($url != '') ? $url : $contact_url; } + // Prevents endless loop in case only a non-public contact exists for the contact URL + unset($data['uid']); + return self::magicLinkByContact($data, $contact_url); }