mirror of
https://github.com/friendica/friendica
synced 2025-04-28 23:44:23 +02:00
Provide OpenWebAuth related data
This commit is contained in:
parent
5751311e99
commit
4d3d4de972
3 changed files with 90 additions and 10 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue