ee60e572f91b — Peter Sanchez a month ago
Updating StreetPass integration with work from benjojo
1 files changed, 10 insertions(+), 1 deletions(-)

M web.go
M web.go +10 -1
@@ 2539,6 2539,8 @@ var oldfingers = gencache.New(gencache.O
 	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 @@ var oldfingers = gencache.New(gencache.O
 		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
 }})