all repos — honk @ 1eb3f5b2dc7f16cecd88dd303276ffbe1aa3bddc

my fork of honk

expand as:Public on intake
Ted Unangst tedu@tedunangst.com
Sat, 30 Dec 2023 13:56:06 -0500
commit

1eb3f5b2dc7f16cecd88dd303276ffbe1aa3bddc

parent

a11b47be988540caf73eac09d7b87c15bdffbebc

1 files changed, 9 insertions(+), 2 deletions(-)

jump to
M activity.goactivity.go

@@ -43,8 +43,10 @@ var falsenames = []string{

`application/ld+json`, `application/activity+json`, } -var itiswhatitis = "https://www.w3.org/ns/activitystreams" -var thewholeworld = "https://www.w3.org/ns/activitystreams#Public" + +const itiswhatitis = "https://www.w3.org/ns/activitystreams" +const thewholeworld = "https://www.w3.org/ns/activitystreams#Public" +const tinyworld = "as:Public" var fastTimeout time.Duration = 5 var slowTimeout time.Duration = 30

@@ -800,6 +802,11 @@ xonk.Audience = newphone(nil, obj)

} xonk.Audience = append(xonk.Audience, xonk.Honker) xonk.Audience = oneofakind(xonk.Audience) + for i, a := range xonk.Audience { + if a == tinyworld { + xonk.Audience[i] = thewholeworld + } + } xonk.Public = loudandproud(xonk.Audience) var mentions []Mention