Added logic to get content for a post