Allow usernames and post IDs to be read from file.
This commit is contained in:
@@ -38,7 +38,7 @@ const getPostsWrap = reddit => function getPosts(postIds, userPosts = {}) {
|
||||
}
|
||||
|
||||
const user = await getUser(post.author.name, reddit);
|
||||
const { profile, posts: indexed } = await getIndexedPosts(user);
|
||||
const { profile, posts: indexed } = await getIndex(user);
|
||||
|
||||
return { ...accUserPosts, [post.author.name]: { ...user, posts: [post], indexed: { profile, original: indexed, updated: [] } } };
|
||||
}), userPosts);
|
||||
|
||||
Reference in New Issue
Block a user