Use the top-level author theme if they're a local user in mod/display
This commit is contained in:
parent
faa3f26d3b
commit
a924716131
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue