mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
Resolve #2762
This commit is contained in:
parent
4866b70387
commit
5c38382903
1 changed files with 5 additions and 0 deletions
|
@ -118,6 +118,11 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
||||||
return rej();
|
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)) {
|
if (data.reply && data.reply.visibility == 'private' && !data.reply.userId.equals(user._id)) {
|
||||||
return rej();
|
return rej();
|
||||||
|
|
Loading…
Reference in a new issue