all repos — honk @ 2e423c52df4716b8bb7fbb0b1958c871727510de

my fork of honk

update of person is frequent and useless
Ted Unangst tedu@tedunangst.com
Mon, 10 Jun 2019 14:50:26 -0400
commit

2e423c52df4716b8bb7fbb0b1958c871727510de

parent

e2d4acc04beacb477e2c779cf6ceda2ddb778c3c

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

jump to
M honk.gohonk.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 {