fix for attachment checking on new posts