From 273bc6507acaf2247c3dc6ad3714845d05765353 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Fri, 11 Jan 2019 08:06:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=80=E3=82=A4=E3=83=AC=E3=82=AF=E3=83=88?= =?UTF-8?q?=E3=82=92=E9=9D=9E=E5=85=AC=E9=96=8B=E3=81=AE=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E4=BD=BF=E3=81=88=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B=20(#3869)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/note/create.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 876097852b..a36b4442ac 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -183,11 +183,6 @@ export default async (user: IUser, data: Option, silent = false) => new Promise< data.visibleUsers.push(u); } } - - // ダイレクト投稿でユーザーが指定されていなかったらreject - if (data.visibleUsers.length === 0) { - return rej('Target user is not specified'); - } } const note = await insertNote(user, data, tags, emojis, mentionedUsers);