implement getAllPosts and getPostsFromFeed