diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 87df4e5..3b7a418 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -218,6 +218,16 @@ async function bluesky(msg, url, spoiler = false) { timestamp: post.record.createdAt, }; + if (data.thread.parent) { + const reply = data.thread.parent.post; + mainEmbed.author = { + name: `\u21a9 Replying to: ${reply.author.displayName} (${reply.author.handle})`, + url: `https://bsky.app/profile/${reply.author.handle}/post/${reply.uri.substring( + reply.uri.lastIndexOf("/") + 1 + )}`, + }; + } + if (post.embed) { switch (post.embed.$type) { case "app.bsky.embed.images#view": {