X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FHome.php;h=fbba889a883af7839d36b7999a3e719d08536820;hb=f8018f8dfe0183ce7c8f7e8460e0d9fbd5b9395b;hp=ab05497d3f36399e756c9afdc895768b5a034c0e;hpb=1874a32728142f2c12724562eb122eb1cd1370fe;p=friendica.git diff --git a/src/Module/Home.php b/src/Module/Home.php index ab05497d3f..fbba889a88 100644 --- a/src/Module/Home.php +++ b/src/Module/Home.php @@ -25,13 +25,22 @@ use Friendica\BaseModule; use Friendica\Core\Hook; use Friendica\Core\Renderer; use Friendica\DI; +use Friendica\Model\User; use Friendica\Module\Security\Login; +use Friendica\Protocol\ActivityPub; /** * Home module - Landing page of the current node */ class Home extends BaseModule { + protected function rawContent(array $request = []) + { + if (ActivityPub::isRequest()) { + DI::baseUrl()->redirect(User::getActorName()); + } + } + protected function content(array $request = []): string { $app = DI::app(); @@ -60,7 +69,7 @@ class Home extends BaseModule $customHome = $homeFilePath; if (file_exists($cssFilePath)) { - DI::page()['htmlhead'] .= ''; + DI::page()->registerStylesheet('home.css', 'all'); } }