From 44d91d465089378c235426cbec1f4c8b53fb62f0 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 2 Jan 2023 19:07:07 -0500 Subject: add extra href to webfinger --- views/webfinger.go | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'views') 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 } -- cgit v1.2.3