]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
Fixing tests again
[friendica.git] / mod / follow.php
index 09201bed16cab63f3a143da391c8a85a154b3205..6227c0304cb8792b45e8cda332bbcd8a054d6693 100644 (file)
@@ -156,8 +156,8 @@ function follow_content(App $a)
 
        DI::page()['aside'] = '';
 
-       if ($protocol != Protocol::PHANTOM) {
-               DI::page()['aside'] = Widget\VCard::getHTML(Contact::getByURL($contact['url'], false));
+       if (!in_array($protocol, [Protocol::PHANTOM, Protocol::MAIL])) {
+               DI::page()['aside'] = Widget\VCard::getHTML($contact);
 
                $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'),
                        ['$title' => DI::l10n()->t('Status Messages and Posts')]