From bffef1e36e6d00fb6e50d971a4476cb659afbde3 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 20 Oct 2020 05:47:14 +0000 Subject: [PATCH] The single click does not work with legacy DFRN --- mod/follow.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/follow.php b/mod/follow.php index d47cec76d..b01395874 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -121,6 +121,10 @@ function follow_content(App $a) $request = $contact['request']; $tpl = Renderer::getMarkupTemplate('dfrn_request.tpl'); } else { + if (!empty($_REQUEST['auto'])) { + follow_process($a, $contact['url']); + } + $request = DI::baseUrl() . '/follow'; $tpl = Renderer::getMarkupTemplate('auto_request.tpl'); } @@ -137,10 +141,6 @@ function follow_content(App $a) // Makes the connection request for friendica contacts easier $_SESSION['fastlane'] = $contact['url']; - if (!empty($_REQUEST['auto'])) { - follow_process($a, $contact['url']); - } - $o = Renderer::replaceMacros($tpl, [ '$header' => DI::l10n()->t('Connect/Follow'), '$pls_answer' => DI::l10n()->t('Please answer the following:'),