fedimbed: remove platform name for bsky/tw when minimal

This commit is contained in:
Cynthia Foxwell 2025-05-07 20:18:35 -06:00
parent c28d79947f
commit cafe25d614
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -459,9 +459,7 @@ async function blueskyQuoteEmbed(quote, minimal = false) {
const footer = minimal const footer = minimal
? { ? {
type: 10, type: 10,
content: `${Icons.fedimbed.bluesky} Bluesky \u2022 <t:${Math.floor( content: `<t:${Math.floor(new Date(quote.value.createdAt).getTime() / 1000)}:F>`,
new Date(quote.value.createdAt).getTime() / 1000
)}:F>`,
} }
: { : {
type: 9, type: 9,
@ -709,9 +707,7 @@ async function bluesky(msg, url, spoiler = false, minimal = false) {
const footer = minimal const footer = minimal
? { ? {
type: 10, type: 10,
content: `${Icons.fedimbed.bluesky} Bluesky \u2022 <t:${Math.floor( content: `<t:${Math.floor(new Date(post.record.createdAt).getTime() / 1000)}:F>`,
new Date(post.record.createdAt).getTime() / 1000
)}:F>`,
} }
: { : {
type: 9, type: 9,
@ -1485,7 +1481,7 @@ async function processUrl(msg, url, spoiler = false, command = false, inQuote =
const footer = minimal const footer = minimal
? { ? {
type: 10, type: 10,
content: `${footerIcon ? footerIcon + " " : ""}${platformName} \u2022 <t:${Math.floor( content: `${platformName === "Twitter" ? "" : platformName + " "}<t:${Math.floor(
new Date(timestamp).getTime() / 1000 new Date(timestamp).getTime() / 1000
)}:F>`, )}:F>`,
} }