fedimbed: length check images
This commit is contained in:
		
							parent
							
								
									074271e1a7
								
							
						
					
					
						commit
						727af991ce
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -770,10 +770,12 @@ async function bluesky(msg, url, spoiler = false) {
 | 
			
		|||
    }
 | 
			
		||||
  }*/
 | 
			
		||||
 | 
			
		||||
  container.components.push({
 | 
			
		||||
    type: 12,
 | 
			
		||||
    items: images,
 | 
			
		||||
  });
 | 
			
		||||
  if (images.length > 0) {
 | 
			
		||||
    container.components.push({
 | 
			
		||||
      type: 12,
 | 
			
		||||
      items: images,
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
  for (const video of videos) {
 | 
			
		||||
    container.components.push({
 | 
			
		||||
      type: 12,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue