mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	fix: correctly check the sensitivity flag (#10976)
This commit is contained in:
		
							parent
							
								
									8ccf954065
								
							
						
					
					
						commit
						95b2148bfe
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -5,8 +5,8 @@ block vars
 | 
				
			||||||
	- const title = user.name ? `${user.name} (@${user.username})` : `@${user.username}`;
 | 
						- const title = user.name ? `${user.name} (@${user.username})` : `@${user.username}`;
 | 
				
			||||||
	- const url = `${config.url}/notes/${note.id}`;
 | 
						- const url = `${config.url}/notes/${note.id}`;
 | 
				
			||||||
	- const isRenote = note.renote && note.text == null && note.fileIds.length == 0 && note.poll == null;
 | 
						- const isRenote = note.renote && note.text == null && note.fileIds.length == 0 && note.poll == null;
 | 
				
			||||||
	- const image = (note.files || []).find(file => file.type.startsWith('image/') && !file.type.isSensitive)
 | 
						- const image = (note.files || []).find(file => file.type.startsWith('image/') && !file.isSensitive)
 | 
				
			||||||
	- const video = (note.files || []).find(file => file.type.startsWith('video/') && !file.type.isSensitive)
 | 
						- const video = (note.files || []).find(file => file.type.startsWith('video/') && !file.isSensitive)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
block title
 | 
					block title
 | 
				
			||||||
	= `${title} | ${instanceName}`
 | 
						= `${title} | ${instanceName}`
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue