From: Hypolite Petovan Date: Sun, 29 May 2022 01:53:57 +0000 (-0400) Subject: Use the top-level author theme if they're a local user in mod/display X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a924716131eb9eaf5105f39a817bf032f422b7c8;p=friendica.git Use the top-level author theme if they're a local user in mod/display --- diff --git a/mod/display.php b/mod/display.php index 880cfd44b8..670ce45d16 100644 --- a/mod/display.php +++ b/mod/display.php @@ -110,7 +110,13 @@ function display_init(App $a) $item = $parent ?: $item; } - DI::page()['aside'] = Widget\VCard::getHTML(display_fetchauthor($item)); + $author = display_fetchauthor($item); + + if (\Friendica\Util\Network::isLocalLink($author['url'])) { + \Friendica\Model\Profile::load(DI::app(), $author['nick'], false); + } else { + DI::page()['aside'] = Widget\VCard::getHTML($author); + } } function display_fetchauthor($item)