diff options
| author | winter | 2024-12-13 23:53:23 +0000 |
|---|---|---|
| committer | winter | 2024-12-13 23:53:23 +0000 |
| commit | 2713c1f73a39d4106936d4c52bf8f18d810d7f3c (patch) | |
| tree | ca3ab4c78b7a45fe4ddc218ce4e45f181cd179e2 /routes/webfinger.php | |
| parent | ae37b73d1f15ffe5c4c9a32c5de349cd746ebc48 (diff) | |
add instance information
Diffstat (limited to 'routes/webfinger.php')
| -rw-r--r-- | routes/webfinger.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/webfinger.php b/routes/webfinger.php index cfccb22..541fb06 100644 --- a/routes/webfinger.php +++ b/routes/webfinger.php @@ -4,6 +4,7 @@ use Digitigrade\GlobalConfig; use Digitigrade\HttpResponseStatus\BadRequest; use Digitigrade\HttpResponseStatus\NotFound; use Digitigrade\Model\Actor; +use Digitigrade\Model\ActorWebfinger; use Digitigrade\Router; Router::getInstance()->mount('/.well-known/webfinger', function (array $args) { @@ -27,7 +28,7 @@ Router::getInstance()->mount('/.well-known/webfinger', function (array $args) { 'subject' => "acct:$actor->handle@$remotePart", 'links' => [ [ - 'rel' => Actor::REL_URI, + 'rel' => ActorWebfinger::REL_URI, 'href' => path_to_uri("/user/$actor->handle"), 'type' => 'application/json' ] |
