fedimbed: javascript moment
This commit is contained in:
		
							parent
							
								
									1e5c56c0d6
								
							
						
					
					
						commit
						f86e33ef3e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -997,7 +997,7 @@ async function processUrl(msg, url, spoiler = false, command = false) {
 | 
			
		|||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (postData.attachment) {
 | 
			
		||||
    if (postData.attachment != null) {
 | 
			
		||||
      // NB: gts doesnt send singular attachments as array
 | 
			
		||||
      const attachments = Array.isArray(postData.attachment) ? postData.attachment : [postData.attachment];
 | 
			
		||||
      for (const attachment of attachments) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue