fedimbed: error handle mastoapi fallback
This commit is contained in:
		
							parent
							
								
									04283d72a6
								
							
						
					
					
						commit
						ad98a5558d
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -131,6 +131,8 @@ async function processUrl(msg, url) {
 | 
			
		|||
          "fedimbed",
 | 
			
		||||
          `Bailing trying to re-embed "${url}": Failed to get post from both AS2 and MastoAPI.`
 | 
			
		||||
        );
 | 
			
		||||
      } else if (postData2.error) {
 | 
			
		||||
        logger.error("fedimbed", `Bailing trying to re-embed "${url}", MastoAPI gave us error: ${postData2.error}`);
 | 
			
		||||
      } else {
 | 
			
		||||
        cw = postData2.spoiler_warning;
 | 
			
		||||
        content =
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue