Resolve #5958
This commit is contained in:
		@@ -117,7 +117,7 @@ export default async (user: User, data: Option, silent = false) => new Promise<N
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Renote対象が「ホームまたは全体」以外の公開範囲ならreject
 | 
			
		||||
	if (data.renote && data.renote.visibility != 'public' && data.renote.visibility != 'home') {
 | 
			
		||||
	if (data.renote && data.renote.visibility != 'public' && data.renote.visibility != 'home' && data.renote.userId !== user.id) {
 | 
			
		||||
		return rej('Renote target is not public or home');
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@@ -126,6 +126,11 @@ export default async (user: User, data: Option, silent = false) => new Promise<N
 | 
			
		||||
		data.visibility = 'home';
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Renote対象がfollowersならfollowersにする
 | 
			
		||||
	if (data.renote && data.renote.visibility === 'followers') {
 | 
			
		||||
		data.visibility = 'followers';
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// 返信対象がpublicではないならhomeにする
 | 
			
		||||
	if (data.reply && data.reply.visibility != 'public' && data.visibility == 'public') {
 | 
			
		||||
		data.visibility = 'home';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user