mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	server: Fix fulltext search ignoring buffers
This commit is contained in:
		
							parent
							
								
									8f5859f344
								
							
						
					
					
						commit
						f3641e5fa6
					
				| @ -86,7 +86,7 @@ class NoteContentFulltextExp extends Expression { | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         if (!content || typeof content !== "string") { | ||||
|         if (!content) { | ||||
|             return; | ||||
|         } | ||||
| 
 | ||||
| @ -123,7 +123,7 @@ class NoteContentFulltextExp extends Expression { | ||||
|         return content; | ||||
|     } | ||||
| 
 | ||||
|     preprocessContent(content: string, type: string, mime: string) { | ||||
|     preprocessContent(content: string | Buffer, type: string, mime: string) { | ||||
|         content = utils.normalize(content.toString()); | ||||
| 
 | ||||
|         if (type === 'text' && mime === 'text/html') { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran