updated for getTopicPosts change