diff options
author | FChannel <=> | 2021-01-28 19:59:37 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-28 19:59:37 -0800 |
commit | 26db3d04944e838e6de5aeb736c59982ed226c48 (patch) | |
tree | 797b2329ecddbe34862ca49c57b6c6b7410c2791 /OutboxPost.go | |
parent | 42e7acc965daea755a84064f68e4eebf3e3b2e11 (diff) |
delete objects local and remote
Diffstat (limited to 'OutboxPost.go')
-rw-r--r-- | OutboxPost.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OutboxPost.go b/OutboxPost.go index 9910761..7349b16 100644 --- a/OutboxPost.go +++ b/OutboxPost.go @@ -554,8 +554,12 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { for _, e := range activity.To { actor := GetActorFromDB(db, e) if actor.Id != "" { - TombstoneObjectFromCache(db, activity.Object.Id) - return + for _, e := range activity.Object.Replies.OrderedItems { + TombstoneObjectFromCache(db, e.Id) + DeleteObject(db, e.Id) + } + TombstoneObjectFromCache(db, activity.Object.Id) + break } } break |