Fix handling of deleted posts