diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-03 00:07:07 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-03 00:07:07 +0000 |
commit | 44d91d465089378c235426cbec1f4c8b53fb62f0 (patch) | |
tree | 538fed20f18e3a406bf21178644d2b1dae96c405 | |
parent | 84e30e433c867049c7d45edefcf4399c3157ba0f (diff) | |
download | communique-44d91d465089378c235426cbec1f4c8b53fb62f0.tar.gz |
add extra href to webfinger
-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 } |