Merge pull request #11571 from MrPetovan/bug/11291-user-theme-display

Use the top-level author theme if they're a local user in mod/display
This commit is contained in:
Michael Vogel 2022-05-29 05:39:54 +02:00 committed by GitHub
commit 511a51b9a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,13 @@ function display_init(App $a)
$item = $parent ?: $item; $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) function display_fetchauthor($item)