X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Funfollow.php;h=de1cb6cf7cdb05dd02a69c2bbc6447c59295f42b;hb=9b78d872879bafaa8c3260d9e869734e9d9b3a2a;hp=1c6022a4cb4b31dce2420f33d078dd96a004cb65;hpb=2a431b580f2e8f6a596e84175932e793678cde63;p=friendica.git diff --git a/mod/unfollow.php b/mod/unfollow.php index 1c6022a4cb..de1cb6cf7c 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -20,12 +20,12 @@ */ use Friendica\App; +use Friendica\Content\Widget; use Friendica\Core\Protocol; use Friendica\Core\Renderer; use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Contact; -use Friendica\Model\Profile; use Friendica\Model\User; use Friendica\Util\Strings; @@ -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']); } @@ -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 +}