all repos — honk @ 35c52fc06caa7f0b6978f1c9af2c5d18a5d2b323

my fork of honk

look for location as property not just tag
Ted Unangst tedu@tedunangst.com
Wed, 02 Oct 2019 21:24:40 -0400
commit

35c52fc06caa7f0b6978f1c9af2c5d18a5d2b323

parent

db94d2bff6661d78f0a6e2fe0f5a620bb324bcdc

1 files changed, 13 insertions(+), 0 deletions(-)

jump to
M activity.goactivity.go

@@ -722,6 +722,19 @@ t.StartTime = start

xonk.Time = t } } + loca, ok := obj.GetMap("location") + if ok { + tt, _ := loca.GetString("type") + name, _ := loca.GetString("name") + if tt == "Place" { + p := new(Place) + p.Name = name + p.Latitude, _ = loca["latitude"].(float64) + p.Longitude, _ = loca["longitude"].(float64) + p.Url, _ = loca.GetString("url") + xonk.Place = p + } + } xonk.Onts = oneofakind(xonk.Onts) replyobj, ok := obj.GetMap("replies")