mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	check if title is there
This commit is contained in:
		
							parent
							
								
									b087a5181e
								
							
						
					
					
						commit
						e9e5fadcb8
					
				| @ -80,6 +80,7 @@ module.exports = function (app, config, renderTemplate) { | |||||||
|     const ip = JSON.parse(jj); |     const ip = JSON.parse(jj); | ||||||
|     const isvld = await core.isvalidvideo(v); |     const isvld = await core.isvalidvideo(v); | ||||||
| 
 | 
 | ||||||
|  |      | ||||||
|     if (isvld) { |     if (isvld) { | ||||||
|       |       | ||||||
|           core.video(v).then((data) => { |           core.video(v).then((data) => { | ||||||
| @ -88,7 +89,7 @@ module.exports = function (app, config, renderTemplate) { | |||||||
|             const engagement = data.engagement; |             const engagement = data.engagement; | ||||||
|             var inv_comments = data.comments; |             var inv_comments = data.comments; | ||||||
|             const inv_vid = data.vid; |             const inv_vid = data.vid; | ||||||
| 
 |            if(json.Title) { | ||||||
|             if (!data.comments) inv_comments = "Disabled"; |             if (!data.comments) inv_comments = "Disabled"; | ||||||
| 
 | 
 | ||||||
|             if (!core.video(v).b) { |             if (!core.video(v).b) { | ||||||
| @ -139,7 +140,9 @@ module.exports = function (app, config, renderTemplate) { | |||||||
|               inv_vid, |               inv_vid, | ||||||
|               lyrics: "", |               lyrics: "", | ||||||
|             }); |             }); | ||||||
|  |              } | ||||||
|           }); |           }); | ||||||
|  |            | ||||||
|   |   | ||||||
|     } else { |     } else { | ||||||
|       res.redirect("/"); |       res.redirect("/"); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley