From 5c862211c7318bb353cd82a2a049c0240cbb6c8c Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 29 Jun 2022 11:55:52 +0900 Subject: [PATCH] Delete posts without valid parent objects --- patches/post-parents/post-parents.go | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/post-parents/post-parents.go b/patches/post-parents/post-parents.go index 1515b627..f9587140 100644 --- a/patches/post-parents/post-parents.go +++ b/patches/post-parents/post-parents.go @@ -18,6 +18,7 @@ func main() { if obj == nil { color.Yellow(post.ID) color.Red(post.Text) + post.Delete() } } }