mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	除外範囲考慮するように
This commit is contained in:
		
							parent
							
								
									a0c3dede8e
								
							
						
					
					
						commit
						3877b366b3
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -591,7 +591,12 @@ async function post(ev?: MouseEvent) {
 | 
				
			||||||
		text.includes('$[x4') ||
 | 
							text.includes('$[x4') ||
 | 
				
			||||||
		text.includes('$[scale') ||
 | 
							text.includes('$[scale') ||
 | 
				
			||||||
		text.includes('$[position');
 | 
							text.includes('$[position');
 | 
				
			||||||
	if (annoying) {
 | 
					
 | 
				
			||||||
 | 
						// 対象になる公開範囲の配列
 | 
				
			||||||
 | 
						const inclusionVisibilities: ReadonlyArray<'public'	| 'home' | 'followers' | 'specified'>
 | 
				
			||||||
 | 
						= ['public'];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (annoying && inclusionVisibilities.includes(visibility)) {
 | 
				
			||||||
		const { canceled, result } = await os.actions({
 | 
							const { canceled, result } = await os.actions({
 | 
				
			||||||
			type: 'warning',
 | 
								type: 'warning',
 | 
				
			||||||
			text: i18n.ts.thisPostMayBeAnnoying,
 | 
								text: i18n.ts.thisPostMayBeAnnoying,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue