fedimbed: try 4
This commit is contained in:
		
							parent
							
								
									d43f29f2c5
								
							
						
					
					
						commit
						9d6c9450ce
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1338,6 +1338,7 @@ async function processUrl(msg, url, spoiler = false, command = false) {
 | 
			
		|||
  if (platformName == "Twitter") {
 | 
			
		||||
    const newHandle = author.handle.split("@")[0];
 | 
			
		||||
    author.handle = "@" + newHandle;
 | 
			
		||||
    author.url = author.url.replaceAll(/tw\.(counter-strike\.gay|c7\.pm)/g, "twitter.com");
 | 
			
		||||
 | 
			
		||||
    if (context) {
 | 
			
		||||
      const contextHandle = context.match(/\(([^@]+?@.+?)\)/)?.[1];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue