chore: move assertNote to separate file in preparation for additional note-based methods

This commit is contained in:
Julian Lam
2024-01-11 10:05:02 -05:00
parent ab40ba6167
commit 2b3b6e56af
3 changed files with 3 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ Posts.getPostsByPids = async function (pids, uid) {
}
const remotePids = pids.filter(pid => !utils.isNumber(pid));
await activitypub.assertNotes(uid, remotePids);
await activitypub.notes.assert(uid, remotePids);
let posts = await Posts.getPostsData(pids);
posts = await Promise.all(posts.map(Posts.parsePost));
const data = await plugins.hooks.fire('filter:post.getPosts', { posts: posts, uid: uid });