aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-03 00:07:07 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-03 00:07:07 +0000
commit44d91d465089378c235426cbec1f4c8b53fb62f0 (patch)
tree538fed20f18e3a406bf21178644d2b1dae96c405 /views
parent84e30e433c867049c7d45edefcf4399c3157ba0f (diff)
downloadcommunique-44d91d465089378c235426cbec1f4c8b53fb62f0.tar.gz
add extra href to webfinger
Diffstat (limited to 'views')
-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
}