added marking of deleted posts as invalid