feat(nodeinfo2): add .well-known route for nodeinfo2 containing metadata about the castopod instance

This commit is contained in:
Yassine Doghri 2022-01-06 14:26:03 +00:00
commit 88fddc81d7
5 changed files with 154 additions and 0 deletions

View file

@ -36,6 +36,8 @@ class ActorObject extends ObjectType
protected string $url;
protected string $nodeInfo2Url;
/**
* @var array<string, string>
*/
@ -59,6 +61,7 @@ class ActorObject extends ObjectType
$this->preferredUsername = $actor->username;
$this->summary = $actor->summary;
$this->url = $actor->uri;
$this->nodeInfo2Url = url_to('nodeInfo2');
$this->inbox = $actor->inbox_url;
$this->outbox = $actor->outbox_url;