aboutsummaryrefslogtreecommitdiff
path: root/views/webfinger.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--views/webfinger.go17
1 files changed, 12 insertions, 5 deletions
diff --git a/views/webfinger.go b/views/webfinger.go
index e6ddc23..47c1223 100644
--- a/views/webfinger.go
+++ b/views/webfinger.go
@@ -26,11 +26,18 @@ func RenderWebfinger(name, domain, hostname string) (*WebfingerResource, error)
rs := WebfingerResource{
Subject: fmt.Sprintf("acct:%s%s", name, hostname), //hostname contains @
Aliases: []string{actorUrl.String()},
- Links: []Link{{
- Rel: "self",
- Href: actorUrl.String(),
- Type: "application/activity+json",
- }},
+ Links: []Link{
+ {
+ Rel: "self",
+ Href: actorUrl.String(),
+ Type: "application/activity+json",
+ },
+ {
+ Rel: "self",
+ Href: actorUrl.String(),
+ Type: "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"",
+ },
+ },
}
return &rs, nil
}