Skip to content
Snippets Groups Projects
Unverified Commit 92484be8 authored by syuilo's avatar syuilo
Browse files

Resolve #2762

parent 56b8f8b0
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment