0
0
This commit is contained in:
syuilo 2018-09-24 16:02:01 +09:00
parent 56b8f8b07d
commit 92484be87f
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -118,6 +118,11 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
return rej();
}
// Renote対象が「ホームまたは全体」以外の公開範囲ならreject
if (data.renote && data.renote.visibility != 'public' && data.renote.visibility != 'home') {
return rej();
}
// リプライ対象が自分以外の非公開の投稿なら禁止
if (data.reply && data.reply.visibility == 'private' && !data.reply.userId.equals(user._id)) {
return rej();