fedimbed: move files define
This commit is contained in:
		
							parent
							
								
									4bbe1a89d2
								
							
						
					
					
						commit
						b65865b10f
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -635,6 +635,7 @@ async function processUrl(msg, url, spoiler = false) {
 | 
			
		|||
  }
 | 
			
		||||
 | 
			
		||||
  const embeds = [];
 | 
			
		||||
  const files = [];
 | 
			
		||||
 | 
			
		||||
  if (images.length > 0) {
 | 
			
		||||
    if (images.length == 4) {
 | 
			
		||||
| 
						 | 
				
			
			@ -743,8 +744,6 @@ async function processUrl(msg, url, spoiler = false) {
 | 
			
		|||
    embeds.push(baseEmbed);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const files = [];
 | 
			
		||||
 | 
			
		||||
  if (videos.length > 0) {
 | 
			
		||||
    for (const attachment of videos) {
 | 
			
		||||
      const size = await fetch(attachment.url, {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue