# HG changeset patch # User Peter Sanchez # Date 1728430021 21600 # Tue Oct 08 17:27:01 2024 -0600 # Node ID ee60e572f91b5c1d09878edc0fb581d56f2f2ce7 # Parent 7de2e36da30eb43d40459f88b141457f945e6121 Updating StreetPass integration with work from benjojo diff --git a/web.go b/web.go --- a/web.go +++ b/web.go @@ -2539,6 +2539,8 @@ l["type"] = `application/activity+json` l["href"] = user.URL + // This is for StreetPass extension integration + // StreetPass avatar l3 := junk.New() l3["rel"] = "http://webfinger.net/rel/avatar" ext := gofilepath.Ext(user.Options.Avatar) @@ -2548,7 +2550,14 @@ l3["type"] = "image/png" } l3["href"] = user.Options.Avatar - j["links"] = []junk.Junk{l, l3} + + // StreetPass profile + l4 := junk.New() + l4["rel"] = "http://webfinger.net/rel/profile-page" + l4["type"] = "text/html" + l4["href"] = user.URL + + j["links"] = []junk.Junk{l, l3, l4} return j.ToBytes(), true }})