fix serialize for posts with no content or metadata