From 3e9899f800804a38b4ee768bb2c4605898eb4674 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 30 Sep 2019 14:28:57 -0400 Subject: [PATCH] treat tombstone as delete --- activity.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/activity.go b/activity.go index 06a2ad4..e5974b9 100644 --- a/activity.go +++ b/activity.go @@ -483,6 +483,18 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk { 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 {