better note read handling

This commit is contained in:
syuilo
2021-03-21 17:38:09 +09:00
parent 630464f38d
commit 667d58bad4
15 changed files with 109 additions and 66 deletions

View File

@@ -83,9 +83,7 @@ export default define(meta, async (ps, user) => {
const mentions = await query.take(ps.limit!).getMany();
for (const note of mentions) {
read(user.id, note.id);
}
read(user.id, mentions.map(note => note.id));
return await Notes.packMany(mentions, user);
});