From: Hypolite Petovan Date: Fri, 6 Sep 2019 12:33:19 +0000 (-0400) Subject: Use destination URL when provided in Contact::magicLink X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=69105928f5601f57795b1019afd1db8255d1847d;p=friendica.git Use destination URL when provided in Contact::magicLink --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index ffdee6aa0e..0a202cef41 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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); } /**