X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Funfollow.php;h=de1cb6cf7cdb05dd02a69c2bbc6447c59295f42b;hb=9c5a3eba533b84a731d0dacff0e0aae104daca1c;hp=54e015cf5272a25f1de02672ca1475c76140cf37;hpb=4719af67245293c94bd4c4cb75e242841ed32ab6;p=friendica.git diff --git a/mod/unfollow.php b/mod/unfollow.php index 54e015cf52..de1cb6cf7c 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -1,6 +1,6 @@ t("You aren't following this contact.")); @@ -84,9 +84,6 @@ function unfollow_content(App $a) // NOTREACHED } - // Makes the connection request for friendica contacts easier - $_SESSION['fastlane'] = $contact['url']; - if (!empty($_REQUEST['auto'])) { unfollow_process($contact['url']); } @@ -99,7 +96,7 @@ function unfollow_content(App $a) '$submit' => DI::l10n()->t('Submit Request'), '$cancel' => DI::l10n()->t('Cancel'), '$url' => $contact['url'], - '$zrl' => Contact::magicLink($contact['url']), + '$zrl' => Contact::magicLinkByContact($contact), '$url_label' => DI::l10n()->t('Profile URL'), '$myaddr' => $self['url'], '$request' => $request, @@ -107,8 +104,7 @@ function unfollow_content(App $a) '$keywords_label'=> '' ]); - DI::page()['aside'] = ''; - Profile::load($a, '', Contact::getByURL($contact['url'], false)); + DI::page()['aside'] = Widget\VCard::getHTML(Contact::getByURL($contact['url'], false)); $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), ['$title' => DI::l10n()->t('Status Messages and Posts')]); @@ -158,4 +154,4 @@ function unfollow_process(string $url) } DI::baseUrl()->redirect($return_path); -} \ No newline at end of file +}