]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error when following mail accounts
authorMichael <heluecht@pirati.ca>
Thu, 16 Sep 2021 18:19:36 +0000 (18:19 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 16 Sep 2021 18:19:36 +0000 (18:19 +0000)
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')]