fix warnings and possibly double posts if body is empty and UseContentHash is used