all repos — honk @ bca0a79cda18856f16550cc6ab326379e7ebfaf7

my fork of honk

make a note of replies we see
Ted Unangst tedu@tedunangst.com
Mon, 30 Sep 2019 23:16:54 -0400
commit

bca0a79cda18856f16550cc6ab326379e7ebfaf7

parent

1410955271baeda8b3437c1a745b03204c1cb784

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

jump to
M activity.goactivity.go

@@ -462,6 +462,7 @@ dt, _ := item.GetString("published")

var err error var xid, rid, url, content, precis, convoy string + var replies []string var obj junk.Junk var ok bool isUpdate := false

@@ -722,6 +723,17 @@ xonk.Place = p

} } xonk.Onts = oneofakind(xonk.Onts) + replyobj, ok := obj.GetMap("replies") + if ok { + items, _ := replyobj.GetArray("items") + for _, repl := range items { + s, ok := repl.(string) + if ok { + replies = append(replies, s) + } + } + } + } if originate(xid) != origin { log.Printf("original sin: %s <> %s", xid, origin)

@@ -776,6 +788,11 @@ if convoy == "" {

convoy = currenttid } xonk.Convoy = convoy + for _, replid := range replies { + if needxonkid(user, replid) { + log.Printf("missing a reply: %s", replid) + } + } return &xonk } return nil