From b62b422fdd00ce1b0229d04bffdb51de661315e8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 6 Aug 2018 04:07:22 +0900 Subject: [PATCH] =?UTF-8?q?=E5=89=8A=E9=99=A4=E3=81=95=E3=82=8C=E3=81=9F?= =?UTF-8?q?=E6=8A=95=E7=A8=BF=E3=81=AB=E8=BF=94=E4=BF=A1=E3=81=97=E3=81=9F?= =?UTF-8?q?=E3=82=8ARenote=E3=81=97=E3=81=9F=E3=82=8A=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/note/create.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 64556c160..136e4fd07 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -103,6 +103,14 @@ export default async (user: IUser, data: Option, silent = false) => new Promise< data.visibleUsers = data.visibleUsers.filter(x => x != null); } + if (data.reply && data.reply.deletedAt != null) { + return rej(); + } + + if (data.renote && data.renote.deletedAt != null) { + return rej(); + } + if (data.text) { data.text = data.text.trim(); }