From e628d2726bcde7dd6240f2bb773690bf921ec087 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 9 Feb 2020 22:08:59 +0000 Subject: [PATCH] Removed unneeded stuff --- src/Module/RemoteFollow.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/Module/RemoteFollow.php b/src/Module/RemoteFollow.php index 2a4d6bc1e..d0a6c5711 100644 --- a/src/Module/RemoteFollow.php +++ b/src/Module/RemoteFollow.php @@ -19,10 +19,6 @@ class RemoteFollow extends BaseModule { public static function init(array $parameters = []) { - if (empty($parameters['profile'])) { - return; - } - Profile::load(DI::app(), $parameters['profile']); } @@ -30,18 +26,18 @@ class RemoteFollow extends BaseModule { $a = DI::app(); - if (empty($parameters['profile']) || !empty($_POST['cancel']) || empty($_POST['dfrn_url'])) { + if (!empty($_POST['cancel']) || empty($_POST['dfrn_url'])) { DI::baseUrl()->redirect(); } if (empty($a->profile['uid'])) { - notice(DI::l10n()->t('Profile unavailable.') . EOL); + notice(DI::l10n()->t('Profile unavailable.')); return; } $url = trim($_POST['dfrn_url']); if (!strlen($url)) { - notice(DI::l10n()->t("Invalid locator") . EOL); + notice(DI::l10n()->t("Invalid locator")); return; } @@ -79,7 +75,7 @@ class RemoteFollow extends BaseModule { $a = DI::app(); - if (empty($parameters['profile']) || empty($a->profile)) { + if (empty($a->profile)) { return ''; } @@ -98,8 +94,8 @@ class RemoteFollow extends BaseModule '$request' => 'remote_follow/' . $parameters['profile'], '$name' => $a->profile['name'], - '$myaddr' => '', //Profile::getMyURL(), + '$myaddr' => Profile::getMyURL(), ]); return $o; } -} \ No newline at end of file +}