fedimbed.bluesky: use actual icons for reply and quoted
This commit is contained in:
		
							parent
							
								
									b24fb944ad
								
							
						
					
					
						commit
						4f9bc956a3
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -211,7 +211,7 @@ async function blueskyQuoteEmbed(quote) {
 | 
			
		|||
  const mainEmbed = {
 | 
			
		||||
    color: PLATFORM_COLORS.bluesky,
 | 
			
		||||
    url: `https://bsky.app/profile/${quote.author.handle}/post/${quote.uri.substring(quote.uri.lastIndexOf("/") + 1)}`,
 | 
			
		||||
    author: {name: "\u2198 Quoted Post"},
 | 
			
		||||
    author: {name: "Quoted Post", icon_url: "https://cdn.discordapp.com/emojis/1308640087759654922.png"},
 | 
			
		||||
    title: `${quote.author.displayName} (@${quote.author.handle})`,
 | 
			
		||||
    thumbnail: {
 | 
			
		||||
      url: quote.author.avatar,
 | 
			
		||||
| 
						 | 
				
			
			@ -359,7 +359,8 @@ async function bluesky(msg, url, spoiler = false) {
 | 
			
		|||
  if (data.thread.parent) {
 | 
			
		||||
    const reply = data.thread.parent.post;
 | 
			
		||||
    mainEmbed.author = {
 | 
			
		||||
      name: `\u21a9 Replying to: ${reply.author.displayName} (${reply.author.handle})`,
 | 
			
		||||
      name: `Replying to: ${reply.author.displayName} (${reply.author.handle})`,
 | 
			
		||||
      icon_url: "https://cdn.discordapp.com/emojis/1308640078825787412.png",
 | 
			
		||||
      url: `https://bsky.app/profile/${reply.author.handle}/post/${reply.uri.substring(
 | 
			
		||||
        reply.uri.lastIndexOf("/") + 1
 | 
			
		||||
      )}`,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue