]> git.mxchange.org Git - friendica.git/commitdiff
Use destination URL when provided in Contact::magicLink
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 6 Sep 2019 12:33:19 +0000 (08:33 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 6 Sep 2019 12:33:19 +0000 (08:33 -0400)
src/Model/Contact.php

index ffdee6aa0ecd1cbf77b35870fa04ea7ee7c1d3fe..0a202cef4101bca06399bf4622df494056f0b0f9 100644 (file)
@@ -2668,7 +2668,7 @@ class Contact extends BaseObject
                // Prevents endless loop in case only a non-public contact exists for the contact URL
                unset($data['uid']);
 
-               return self::magicLinkByContact($data, $contact_url);
+               return self::magicLinkByContact($data, $url ?: $contact_url);
        }
 
        /**