From 19b1bdcbbe0b58789413543a29c6b14c8d532889 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 18 Apr 2025 14:11:21 -0600 Subject: [PATCH] fedimbed.bluesky: inline post content into header since itll never be over 4000" --- src/modules/fedimbed.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 7ff500c..53e15e3 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -575,8 +575,13 @@ async function bluesky(msg, url, spoiler = false) { components: [ { type: 10, - content: - `${context}\n## ${post.author.displayName}\n[@${post.author.handle}](https://bsky.app/profile/${post.author.did})`.trim(), + content: `${context}\n## ${post.author.displayName}\n[@${post.author.handle}](https://bsky.app/profile/${ + post.author.did + })\n${ + post.record.facets?.length ?? 0 > 0 + ? processBlueskyFacets(post.record.text, post.record.facets) + : post.record.text + }`.trim(), }, ], accessory: { @@ -588,15 +593,6 @@ async function bluesky(msg, url, spoiler = false) { }; container.components.push(header); - const postContent = { - type: 10, - content: - post.record.facets?.length ?? 0 > 0 - ? processBlueskyFacets(post.record.text, post.record.facets) - : post.record.text, - }; - container.components.push(postContent); - const footer = { type: 10, content: `${getStatsBluesky(post)}\n-# Bluesky \u2022