mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
Merge pull request #12784 from annando/redirect-root
Redirect AP requests to the root to the system actor
This commit is contained in:
commit
02f6d0e5f9
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue