Provide OpenWebAuth related data

This commit is contained in:
Michael 2024-05-26 06:43:26 +00:00
parent 5751311e99
commit 4d3d4de972
3 changed files with 90 additions and 10 deletions

View file

@ -28,6 +28,7 @@ use Friendica\DI;
use Friendica\Model\User;
use Friendica\Module\Security\Login;
use Friendica\Protocol\ActivityPub;
use Friendica\Protocol\ZOT;
/**
* Home module - Landing page of the current node
@ -38,6 +39,8 @@ class Home extends BaseModule
{
if (ActivityPub::isRequest()) {
DI::baseUrl()->redirect(User::getActorName());
} elseif (ZOT::isRequest()) {
$this->jsonExit(ZOT::getSiteInfo(), 'application/x-zot+json');
}
}