Delete posts without valid parent objects

This commit is contained in:
Eduard Urbach 2022-06-29 11:55:52 +09:00
parent 1a65f8dcdf
commit 5c862211c7
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -18,6 +18,7 @@ func main() {
if obj == nil {
color.Yellow(post.ID)
color.Red(post.Text)
post.Delete()
}
}
}