From c1d59716d141c782652cd9634689559df41b745d Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Tue, 4 Dec 2018 03:22:41 +0900 Subject: [PATCH] Remove unnecessary Renote check code (#3489) --- 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 9fee12d6a..49b465b94 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -136,11 +136,6 @@ export default async (user: IUser, data: Option, silent = false) => new Promise< return rej('Reply target is private of others'); } - // Renote対象が自分以外の非公開の投稿なら禁止 - if (data.renote && data.renote.visibility == 'private' && !data.renote.userId.equals(user._id)) { - return rej('Renote target is private of others'); - } - // ローカルのみをRenoteしたらローカルのみにする if (data.renote && data.renote.localOnly) { data.localOnly = true;