From f47377d1813dffd1e07c00adad8ac4e9871ae773 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 13 May 2018 03:16:31 +0900 Subject: [PATCH] :v: --- src/services/note/create.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 133d853012..f049c34b65 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -394,13 +394,14 @@ export default async (user: IUser, data: { //#region TODO: これ重い // 今までで同じ投稿をRenoteしているか - const existRenote = await Note.findOne({ - userId: user._id, - renoteId: data.renote._id, - _id: { - $ne: note._id - } - }); + //const existRenote = await Note.findOne({ + // userId: user._id, + // renoteId: data.renote._id, + // _id: { + // $ne: note._id + // } + //}); + const existRenote = null; //#endregion if (!existRenote) {