refactoring the post content getter