Delete posts without valid parent objects
This commit is contained in:
parent
1a65f8dcdf
commit
5c862211c7
@ -18,6 +18,7 @@ func main() {
|
|||||||
if obj == nil {
|
if obj == nil {
|
||||||
color.Yellow(post.ID)
|
color.Yellow(post.ID)
|
||||||
color.Red(post.Text)
|
color.Red(post.Text)
|
||||||
|
post.Delete()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user