fedimbed: more nitter specific overrides
This commit is contained in:
		
							parent
							
								
									6e67b73545
								
							
						
					
					
						commit
						16b129a875
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1454,7 +1454,7 @@ async function processUrl(msg, url, spoiler = false, command = false) {
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const user = author.name ? `${author.name} (${author.handle})` : author.handle;
 | 
			
		||||
  let user = author.name ? `${author.name} (${author.handle})` : author.handle;
 | 
			
		||||
 | 
			
		||||
  const crawled = await getCrawledData(url, color, platformName);
 | 
			
		||||
  if (!color && crawled?.color) {
 | 
			
		||||
| 
						 | 
				
			
			@ -1470,6 +1470,11 @@ async function processUrl(msg, url, spoiler = false, command = false) {
 | 
			
		|||
    platformName = nn;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (platformName == "Nitter") {
 | 
			
		||||
    const newHandle = author.handle.split("@")[0];
 | 
			
		||||
    user = `${author.name} (@${newHandle})`;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const baseEmbed = {
 | 
			
		||||
    color,
 | 
			
		||||
    url,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue