From a924716131eb9eaf5105f39a817bf032f422b7c8 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 28 May 2022 21:53:57 -0400 Subject: [PATCH] Use the top-level author theme if they're a local user in mod/display --- mod/display.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 2.39.5