update of person is frequent and useless

This commit is contained in:
Ted Unangst 2019-06-10 14:50:26 -04:00
parent b0b12e5a6f
commit 4b86ec5962
1 changed files with 15 additions and 0 deletions

15
honk.go
View File

@ -338,6 +338,21 @@ func inbox(w http.ResponseWriter, r *http.Request) {
log.Printf("error updating honker: %s", err) log.Printf("error updating honker: %s", err)
return 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": case "Undo":
obj, ok := jsongetmap(j, "object") obj, ok := jsongetmap(j, "object")
if !ok { if !ok {