X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Funfollow.php;h=de1cb6cf7cdb05dd02a69c2bbc6447c59295f42b;hb=eb035771f118e1f289f2ebbbb8a474aa2765c81e;hp=97cb0e1a327ab998d160f8c3f5c60d5c55ffe338;hpb=a1ee75eba7a4d712adfbcdf578e4aca94789be6a;p=friendica.git diff --git a/mod/unfollow.php b/mod/unfollow.php index 97cb0e1a32..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; @@ -104,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')]);