fedimbed.bluesky: forgot to destructure images
This commit is contained in:
		
							parent
							
								
									f011a4bc8f
								
							
						
					
					
						commit
						cb5fd724fd
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -508,7 +508,7 @@ async function bluesky(msg, url, spoiler = false) {
 | 
			
		|||
    switch (post.embed.$type) {
 | 
			
		||||
      case "app.bsky.embed.images#view": {
 | 
			
		||||
        images.push(
 | 
			
		||||
          post.embed.images.map((image) => ({
 | 
			
		||||
          ...post.embed.images.map((image) => ({
 | 
			
		||||
            media: {url: image.fullsize},
 | 
			
		||||
            description: image.alt.length > 0 ? image.alt : null,
 | 
			
		||||
          }))
 | 
			
		||||
| 
						 | 
				
			
			@ -540,7 +540,7 @@ async function bluesky(msg, url, spoiler = false) {
 | 
			
		|||
 | 
			
		||||
        if (post.embed.media.$type === "app.bsky.embed.images#view") {
 | 
			
		||||
          images.push(
 | 
			
		||||
            post.embed.media.images.map((image) => ({
 | 
			
		||||
            ...post.embed.media.images.map((image) => ({
 | 
			
		||||
              media: {url: image.fullsize},
 | 
			
		||||
              description: image.alt.length > 0 ? image.alt : null,
 | 
			
		||||
            }))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue