better note read handling
This commit is contained in:
parent
630464f38d
commit
667d58bad4
15 changed files with 109 additions and 66 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue