The single click does not work with legacy DFRN
This commit is contained in:
parent
c6a23f1272
commit
bffef1e36e
|
@ -121,6 +121,10 @@ function follow_content(App $a)
|
||||||
$request = $contact['request'];
|
$request = $contact['request'];
|
||||||
$tpl = Renderer::getMarkupTemplate('dfrn_request.tpl');
|
$tpl = Renderer::getMarkupTemplate('dfrn_request.tpl');
|
||||||
} else {
|
} else {
|
||||||
|
if (!empty($_REQUEST['auto'])) {
|
||||||
|
follow_process($a, $contact['url']);
|
||||||
|
}
|
||||||
|
|
||||||
$request = DI::baseUrl() . '/follow';
|
$request = DI::baseUrl() . '/follow';
|
||||||
$tpl = Renderer::getMarkupTemplate('auto_request.tpl');
|
$tpl = Renderer::getMarkupTemplate('auto_request.tpl');
|
||||||
}
|
}
|
||||||
|
@ -137,10 +141,6 @@ function follow_content(App $a)
|
||||||
// Makes the connection request for friendica contacts easier
|
// Makes the connection request for friendica contacts easier
|
||||||
$_SESSION['fastlane'] = $contact['url'];
|
$_SESSION['fastlane'] = $contact['url'];
|
||||||
|
|
||||||
if (!empty($_REQUEST['auto'])) {
|
|
||||||
follow_process($a, $contact['url']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$o = Renderer::replaceMacros($tpl, [
|
$o = Renderer::replaceMacros($tpl, [
|
||||||
'$header' => DI::l10n()->t('Connect/Follow'),
|
'$header' => DI::l10n()->t('Connect/Follow'),
|
||||||
'$pls_answer' => DI::l10n()->t('Please answer the following:'),
|
'$pls_answer' => DI::l10n()->t('Please answer the following:'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user