Small refactoring in findPost and findComment