]> git.mxchange.org Git - friendica.git/commitdiff
Prevents an endless loop when only the non-public contact is available in Contact...
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 10 Jun 2019 23:10:39 +0000 (19:10 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 10 Jun 2019 23:10:39 +0000 (19:10 -0400)
src/Model/Contact.php

index a0bbdd10499f43abbf6138d976c7a145e6d66402..01c30fad71f20a96554860e71bd8cdf934a7c574 100644 (file)
@@ -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);
        }