]> git.mxchange.org Git - friendica.git/commitdiff
Use the top-level author theme if they're a local user in mod/display
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 29 May 2022 01:53:57 +0000 (21:53 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 29 May 2022 01:53:57 +0000 (21:53 -0400)
mod/display.php

index 880cfd44b86eb6af3280594f717b4ce74ebb4199..670ce45d16bb02766800dc18dcdc8934a6cbb715 100644 (file)
@@ -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)