fedimbed: consistency with other command output for links
This commit is contained in:
		
							parent
							
								
									9cd4c3a98c
								
							
						
					
					
						commit
						ba7a050220
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -621,7 +621,7 @@ async function processUrl(msg, url, spoiler = false) {
 | 
			
		|||
  };
 | 
			
		||||
  if (images.length > 0) {
 | 
			
		||||
    if (images.length > 1) {
 | 
			
		||||
      const links = images.map((attachment, index) => `[Image ${index + 1}](${attachment.url})`).join(" | ");
 | 
			
		||||
      const links = images.map((attachment, index) => `[Image ${index + 1}](${attachment.url})`).join("\u3000\u3000");
 | 
			
		||||
 | 
			
		||||
      if (links.length <= 1024)
 | 
			
		||||
        baseEmbed.fields.push({
 | 
			
		||||
| 
						 | 
				
			
			@ -641,7 +641,7 @@ async function processUrl(msg, url, spoiler = false) {
 | 
			
		|||
    if (videos.length > 1) {
 | 
			
		||||
      baseEmbed.fields.push({
 | 
			
		||||
        name: "Videos",
 | 
			
		||||
        value: videos.map((attachment, index) => `[Video ${index + 1}](${attachment.url})`).join(" | "),
 | 
			
		||||
        value: videos.map((attachment, index) => `[Video ${index + 1}](${attachment.url})`).join("\u3000\u3000"),
 | 
			
		||||
        inline: true,
 | 
			
		||||
      });
 | 
			
		||||
    } else {
 | 
			
		||||
| 
						 | 
				
			
			@ -656,7 +656,7 @@ async function processUrl(msg, url, spoiler = false) {
 | 
			
		|||
    if (audios.length > 1) {
 | 
			
		||||
      baseEmbed.fields.push({
 | 
			
		||||
        name: "Audios",
 | 
			
		||||
        value: audios.map((attachment, index) => `[Audio ${index + 1}](${attachment.url})`).join(" | "),
 | 
			
		||||
        value: audios.map((attachment, index) => `[Audio ${index + 1}](${attachment.url})`).join("\u3000\u3000"),
 | 
			
		||||
        inline: true,
 | 
			
		||||
      });
 | 
			
		||||
    } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue