fedimbed: forgot to readd file
This commit is contained in:
		
							parent
							
								
									7bb92e6897
								
							
						
					
					
						commit
						21b4b613d2
					
				
					 1 changed files with 11 additions and 2 deletions
				
			
		| 
						 | 
					@ -148,7 +148,12 @@ async function processUrl(msg, url) {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (redirUrl) {
 | 
					    if (redirUrl) {
 | 
				
			||||||
      logger.verbose("fedimbed", `Redirecting "${url}" to "${redirUrl}": ${JSON.stringify(options)}, ${JSON.stringify(headers)}`);
 | 
					      logger.verbose(
 | 
				
			||||||
 | 
					        "fedimbed",
 | 
				
			||||||
 | 
					        `Redirecting "${url}" to "${redirUrl}": ${JSON.stringify(
 | 
				
			||||||
 | 
					          options
 | 
				
			||||||
 | 
					        )}, ${JSON.stringify(headers)}`
 | 
				
			||||||
 | 
					      );
 | 
				
			||||||
      const rawPostData2 = await fetch(
 | 
					      const rawPostData2 = await fetch(
 | 
				
			||||||
        redirUrl,
 | 
					        redirUrl,
 | 
				
			||||||
        Object.assign(options, {
 | 
					        Object.assign(options, {
 | 
				
			||||||
| 
						 | 
					@ -196,7 +201,11 @@ async function processUrl(msg, url) {
 | 
				
			||||||
          postData2.text ??
 | 
					          postData2.text ??
 | 
				
			||||||
          postData2.content;
 | 
					          postData2.content;
 | 
				
			||||||
        author = {
 | 
					        author = {
 | 
				
			||||||
          name: postData2.account?.display_name postData2.account?.username ?? postData2.user?.name ?? postData2.user?.username,
 | 
					          name:
 | 
				
			||||||
 | 
					            postData2.account?.display_name ??
 | 
				
			||||||
 | 
					            postData2.account?.username ??
 | 
				
			||||||
 | 
					            postData2.user?.name ??
 | 
				
			||||||
 | 
					            postData2.user?.username,
 | 
				
			||||||
          handle:
 | 
					          handle:
 | 
				
			||||||
            postData2.account?.fqn ??
 | 
					            postData2.account?.fqn ??
 | 
				
			||||||
            `${postData2.account?.username ?? postData2.user?.username}@${
 | 
					            `${postData2.account?.username ?? postData2.user?.username}@${
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue