misc.search: fix librex url not being template string
This commit is contained in:
		
							parent
							
								
									3d5aedde8e
								
							
						
					
					
						commit
						e793cb287d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -564,7 +564,7 @@ search.callback = async function (msg, line) {
 | 
			
		|||
    if (res.url != url) return res.url;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const res = await fetch(librex + "/api.php?q=${query}&p=0&t=0");
 | 
			
		||||
  const res = await fetch(`${librex}/api.php?q=${query}&p=0&t=0`);
 | 
			
		||||
  const results = await res.json().then((arr) => arr.splice(0, 5));
 | 
			
		||||
 | 
			
		||||
  let out = `__Results for \`${safeString(line)}\`__\n`;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue