fedimbed: more debug
This commit is contained in:
		
							parent
							
								
									705f9062e0
								
							
						
					
					
						commit
						666daf4fdf
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -135,7 +135,7 @@ async function processUrl(msg, url) {
 | 
			
		|||
      } else if (noteId.indexOf("#") > -1) {
 | 
			
		||||
        noteId = noteId.split("#")[0];
 | 
			
		||||
      }
 | 
			
		||||
      logger.debug("fedimbed", "Misskey post ID: " + noteId);
 | 
			
		||||
      logger.verbose("fedimbed", "Misskey post ID: " + noteId);
 | 
			
		||||
      redirUrl = urlObj.origin + "/api/notes/show/";
 | 
			
		||||
      options.method = "POST";
 | 
			
		||||
      options.body = JSON.stringify({noteId});
 | 
			
		||||
| 
						 | 
				
			
			@ -148,7 +148,7 @@ async function processUrl(msg, url) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    if (redirUrl) {
 | 
			
		||||
      logger.verbose("fedimbed", `Redirecting "${url}" to "${redirUrl}"`);
 | 
			
		||||
      logger.verbose("fedimbed", `Redirecting "${url}" to "${redirUrl}": ${JSON.stringify(options)}, ${JSON.stringify(headers)}`);
 | 
			
		||||
      const rawPostData2 = await fetch(
 | 
			
		||||
        redirUrl,
 | 
			
		||||
        Object.assign(options, {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue