mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-16 04:57:46 +02:00
feat(nodeinfo2): add .well-known route for nodeinfo2 containing metadata about the castopod instance
This commit is contained in:
parent
5bf7200fb3
commit
88fddc81d7
5 changed files with 154 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue