X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FContact%2FFollow.php;h=f8b88c05fc7ab35686ede286500d988a34748736;hb=79235b6db1c9badd6c9602d54ad0d550e4bec2fd;hp=e240a72204cbf8b3d9746d0cffe9da1a10184d07;hpb=8f62278703638626900638931d24d961a326cbf0;p=friendica.git diff --git a/src/Module/Contact/Follow.php b/src/Module/Contact/Follow.php index e240a72204..f8b88c05fc 100644 --- a/src/Module/Contact/Follow.php +++ b/src/Module/Contact/Follow.php @@ -88,7 +88,9 @@ class Follow extends BaseModule } $uid = $this->session->getLocalUserId(); - $url = Probe::cleanURI(trim($request['url'] ?? '')); + + // uri is used by the /authorize_interaction Mastodon route + $url = Probe::cleanURI(trim($request['uri'] ?? $request['url'] ?? '')); // Issue 6874: Allow remote following from Peertube if (strpos($url, 'acct:') === 0) { @@ -151,7 +153,7 @@ class Follow extends BaseModule } $requestUrl = $this->baseUrl . '/contact/follow'; - $tpl = Renderer::getMarkupTemplate('auto_request.tpl'); + $tpl = Renderer::getMarkupTemplate('auto_request.tpl'); $owner = User::getOwnerDataById($uid); if (empty($owner)) {