mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	from da web to searches!!!
This commit is contained in:
		
							parent
							
								
									d8cf389c2e
								
							
						
					
					
						commit
						bd18ae3c3c
					
				| @ -431,10 +431,15 @@ app.get("/search", async (req, res) => { | ||||
|     return res.redirect("/"); | ||||
|   } | ||||
| 
 | ||||
|   const summary = await wiki | ||||
|     .summary(query + "") | ||||
|     .then((summary_) => (summary_.title !== "Not found." ? summary_ : "none")); | ||||
| 
 | ||||
|   renderTemplate(res, req, "search.ejs", { | ||||
|     j, | ||||
|     continuation, | ||||
|     q: query, | ||||
|     summary | ||||
|   }); | ||||
| }); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley