fedimbed: guh
This commit is contained in:
		
							parent
							
								
									a8a26608b6
								
							
						
					
					
						commit
						1c38406a85
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -1293,11 +1293,7 @@ async function processUrl(msg, url, spoiler = false, command = false, inQuote =
 | 
				
			||||||
      const quoteUrl = quote[1];
 | 
					      const quoteUrl = quote[1];
 | 
				
			||||||
      content = content.replace(
 | 
					      content = content.replace(
 | 
				
			||||||
        /<blockquote><b>↘ <a href="[^"]+?">(.+?)<\/a>.+?<\/blockquote>/,
 | 
					        /<blockquote><b>↘ <a href="[^"]+?">(.+?)<\/a>.+?<\/blockquote>/,
 | 
				
			||||||
        !inQuote
 | 
					        !inQuote ? "" : `<small>\u2198 Quoting <a href="${quoteUrl}">$1</a></small>`
 | 
				
			||||||
          ? ""
 | 
					 | 
				
			||||||
          : `<small>${Icons.fedimbed.quote
 | 
					 | 
				
			||||||
              .replace("<", "<")
 | 
					 | 
				
			||||||
              .replace(">", ">")} Quoting <a href="${quoteUrl}">$1</a></small>`
 | 
					 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (!inQuote) quoteRes = await processUrl(msg, quoteUrl, spoiler, command, true);
 | 
					      if (!inQuote) quoteRes = await processUrl(msg, quoteUrl, spoiler, command, true);
 | 
				
			||||||
| 
						 | 
					@ -1310,6 +1306,10 @@ async function processUrl(msg, url, spoiler = false, command = false, inQuote =
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  content = htmlToMarkdown(content);
 | 
					  content = htmlToMarkdown(content);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  if (platformName == "Nitter") {
 | 
				
			||||||
 | 
					    content = content.replace("\u2198", Icons.fedimbed.quote).replace("\u2198", "\u2139\ufe0f");
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  for (const emote of emotes) {
 | 
					  for (const emote of emotes) {
 | 
				
			||||||
    content = content.replaceAll(emote.name, `[${emote.name}](${emote.url})`);
 | 
					    content = content.replaceAll(emote.name, `[${emote.name}](${emote.url})`);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue