all repos — honk @ 2d53c6d7637f1c225e1e8b496c11b5209b9c7b10

my fork of honk

treat tombstone as delete
Ted Unangst tedu@tedunangst.com
Mon, 30 Sep 2019 14:28:57 -0400
commit

2d53c6d7637f1c225e1e8b496c11b5209b9c7b10

parent

96eeaa709ef0b41e182c73f7c0133277dc62df01

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

jump to
M activity.goactivity.go

@@ -483,6 +483,18 @@ }

log.Printf("eradicating %s", xid) eradicatexonk(user.ID, xid) return nil + case "Tombstone": + xid, _ = item.GetString("id") + if xid == "" { + return nil + } + if originate(xid) != origin { + log.Printf("forged delete: %s", xid) + return nil + } + log.Printf("eradicating %s", xid) + eradicatexonk(user.ID, xid) + return nil case "Announce": obj, ok = item.GetMap("object") if ok {