}
$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) {
}
$requestUrl = $this->baseUrl . '/contact/follow';
- $tpl = Renderer::getMarkupTemplate('auto_request.tpl');
+ $tpl = Renderer::getMarkupTemplate('auto_request.tpl');
$owner = User::getOwnerDataById($uid);
if (empty($owner)) {
'$submit' => $submit,
'$cancel' => $this->t('Cancel'),
- '$request' => $requestUrl,
+ '$action' => $requestUrl,
'$name' => $contact['name'],
'$url' => $contact['url'],
'$zrl' => Profile::zrl($contact['url']),