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) {
 | 
			
		||||
      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(
 | 
			
		||||
        redirUrl,
 | 
			
		||||
        Object.assign(options, {
 | 
			
		||||
| 
						 | 
				
			
			@ -196,7 +201,11 @@ async function processUrl(msg, url) {
 | 
			
		|||
          postData2.text ??
 | 
			
		||||
          postData2.content;
 | 
			
		||||
        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:
 | 
			
		||||
            postData2.account?.fqn ??
 | 
			
		||||
            `${postData2.account?.username ?? postData2.user?.username}@${
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue