From 149f71db2d6e1b704ff2712393da5276a622d4dd Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Mon, 2 Aug 2021 16:33:09 -0700 Subject: unarchive when remote delete --- outboxPost.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'outboxPost.go') diff --git a/outboxPost.go b/outboxPost.go index d54dd8e..0292e4f 100644 --- a/outboxPost.go +++ b/outboxPost.go @@ -550,13 +550,14 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { case "Delete": for _, e := range activity.To { actor := GetActorFromDB(db, e) - if actor.Id != "" { + if actor.Id != "" && actor.Id != Domain { if activity.Object.Replies != nil { for _, k := range activity.Object.Replies.OrderedItems { TombstoneObject(db, k.Id) } } TombstoneObject(db, activity.Object.Id) + UnArchiveLast(db, actor.Id) break } } -- cgit v1.2.3