mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	search notes with denormalized userHost field
This commit is contained in:
		
							parent
							
								
									36545aea8b
								
							
						
					
					
						commit
						a95bfb7241
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -287,9 +287,9 @@ export class SearchService {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (opts.host) {
 | 
								if (opts.host) {
 | 
				
			||||||
				if (opts.host === '.') {
 | 
									if (opts.host === '.') {
 | 
				
			||||||
					query.andWhere('user.host IS NULL');
 | 
										query.andWhere('note.userHost IS NULL');
 | 
				
			||||||
				} else {
 | 
									} else {
 | 
				
			||||||
					query.andWhere('user.host = :host', { host: opts.host });
 | 
										query.andWhere('note.userHost = :host', { host: opts.host });
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue