Fix the broken delete feature for posts