add security namespace to context for actor
Ted Unangst tedu@tedunangst.com
Sat, 17 Feb 2024 19:44:51 -0500
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -45,6 +45,7 @@ `application/activity+json`,
} const itiswhatitis = "https://www.w3.org/ns/activitystreams" +const papersplease = "https://w3id.org/security/v1" const thewholeworld = "https://www.w3.org/ns/activitystreams#Public" const tinyworld = "as:Public" const chatKeyProp = "chatKeyV0"@@ -1707,7 +1708,7 @@ }
func junkuser(user *WhatAbout) junk.Junk { j := junk.New() - j["@context"] = itiswhatitis + j["@context"] = []string{itiswhatitis, papersplease} j["id"] = user.URL j["inbox"] = user.URL + "/inbox" j["outbox"] = user.URL + "/outbox"