1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-01 17:26:05 +02:00
This commit is contained in:
syuilo
2018-10-29 15:09:03 +09:00
parent f8981b3acb
commit ae44fe7818

View File

@@ -43,7 +43,6 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
return rej('cannot set sinceId and untilId');
}
// Construct query
const query = {
deletedAt: null,
@@ -81,15 +80,13 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
};
}
// Issue query
const mentions = await Note
.find(query, {
limit: ps.limit,
sort: sort
});
mentions.forEach(note => read(user._id, note._id));
// Serialize
res(await packMany(mentions, user));
mentions.forEach(note => read(user._id, note._id));
});