mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	fix isvalidvideo - gonna check if this is valid
This commit is contained in:
		
							parent
							
								
									e386a52b10
								
							
						
					
					
						commit
						143d23759c
					
				| @ -144,11 +144,21 @@ async function isvalidvideo(v) { | ||||
|   if (v != "assets") { | ||||
|     var status; | ||||
| 
 | ||||
|     const vld = await fetch(`${config.dislikes}${v}`).then((res) => { | ||||
|       status = res.status; | ||||
|       return res.json(); | ||||
|     }); | ||||
|     async function ryd() { | ||||
|       try { | ||||
|         const engagement = await fetch(`${config.dislikes}${v}`).then((res) => | ||||
|           res.json() | ||||
|         ); | ||||
|         return engagement; | ||||
|       } catch {} | ||||
|     } | ||||
| 
 | ||||
|     if (ryd.status) { | ||||
|       status = await ryd.status(); | ||||
|     } else { | ||||
|       status = "200"; | ||||
|     } | ||||
|      | ||||
|     if (status == 400) { | ||||
|       return false; | ||||
|     } else { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley