update of person is frequent and useless
Ted Unangst tedu@tedunangst.com
Mon, 10 Jun 2019 14:50:26 -0400
1 files changed,
15 insertions(+),
0 deletions(-)
jump to
M
honk.go
→
honk.go
@@ -338,6 +338,21 @@ if err != nil {
log.Printf("error updating honker: %s", err) return } + case "Update": + obj, ok := jsongetmap(j, "object") + if ok { + what, _ := jsongetstring(obj, "type") + switch what { + case "Person": + return + } + } + log.Printf("unknown Update activity") + fd, _ := os.OpenFile("savedinbox.json", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666) + WriteJunk(fd, j) + io.WriteString(fd, "\n") + fd.Close() + case "Undo": obj, ok := jsongetmap(j, "object") if !ok {