From 6eadbb35dc3a51bf343b2ecad847aab8c99e4255 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 10 Feb 2023 10:29:35 +0000 Subject: [PATCH] Redirect AP requests to the root to the system actor --- src/Module/Home.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Module/Home.php b/src/Module/Home.php index ab05497d3f..74cc88d30d 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(); -- 2.39.5