diff options
-rw-r--r-- | views/webfinger.go | 17 |
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 } |