Skip to content
Snippets Groups Projects
Commit b844a8e9 authored by syuilo's avatar syuilo
Browse files

Add note

parent 6b0a42af
No related branches found
No related tags found
No related merge requests found
......@@ -392,6 +392,7 @@ export default async (user: IUser, data: {
}
}
//#region TODO: これ重い
// 今までで同じ投稿をRenoteしているか
const existRenote = await Note.findOne({
userId: user._id,
......@@ -400,6 +401,7 @@ export default async (user: IUser, data: {
$ne: note._id
}
});
//#endregion
if (!existRenote) {
// Update renoteee status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment