Adding helper functions for unpublishing posts