mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	fix(server): /emoji to accept @. host expression
				
					
				
			This commit is contained in:
		
							parent
							
								
									09078de36b
								
							
						
					
					
						commit
						329ef760bf
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -232,7 +232,8 @@ export class ClientServerService {
 | 
			
		|||
			const host = path.split('@')[1]?.replace('.webp', '');
 | 
			
		||||
 | 
			
		||||
			const emoji = await this.emojisRepository.findOneBy({
 | 
			
		||||
				host: host == null ? IsNull() : host,
 | 
			
		||||
				// `@.` is the spec of ReactionService.decodeReaction
 | 
			
		||||
				host: (host == null || host === '.') ? IsNull() : host,
 | 
			
		||||
				name: name,
 | 
			
		||||
			});
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue