mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	redirect to shorts if theres no videos :3
This commit is contained in:
		
							parent
							
								
									43682f2a87
								
							
						
					
					
						commit
						358a4d8311
					
				| @ -368,6 +368,11 @@ module.exports = function (app, config, renderTemplate) { | ||||
|         " <br> " | ||||
|       ); | ||||
|       const dnoreplace = about?.Description.toString(); | ||||
|        | ||||
| 
 | ||||
|       if(!Array.isArray(tj?.videos) && Array.isArray(shorts?.videos) ) { | ||||
|         res.redirect(`/channel?id=${req.query.id}&tab=shorts`) | ||||
|       } | ||||
| 
 | ||||
|       renderTemplate(res, req, "channel.ejs", { | ||||
|         ID, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ashley
						ashley