Allow usernames and post IDs to be read from file.

This commit is contained in:
2024-09-11 05:16:56 +02:00
parent 00de0d43f5
commit 352b2a66d7
4 changed files with 43 additions and 13 deletions

View File

@@ -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);