fedimbed: remove platform name for bsky/tw when minimal
This commit is contained in:
parent
c28d79947f
commit
cafe25d614
1 changed files with 3 additions and 7 deletions
|
@ -459,9 +459,7 @@ async function blueskyQuoteEmbed(quote, minimal = false) {
|
|||
const footer = minimal
|
||||
? {
|
||||
type: 10,
|
||||
content: `${Icons.fedimbed.bluesky} Bluesky \u2022 <t:${Math.floor(
|
||||
new Date(quote.value.createdAt).getTime() / 1000
|
||||
)}:F>`,
|
||||
content: `<t:${Math.floor(new Date(quote.value.createdAt).getTime() / 1000)}:F>`,
|
||||
}
|
||||
: {
|
||||
type: 9,
|
||||
|
@ -709,9 +707,7 @@ async function bluesky(msg, url, spoiler = false, minimal = false) {
|
|||
const footer = minimal
|
||||
? {
|
||||
type: 10,
|
||||
content: `${Icons.fedimbed.bluesky} Bluesky \u2022 <t:${Math.floor(
|
||||
new Date(post.record.createdAt).getTime() / 1000
|
||||
)}:F>`,
|
||||
content: `<t:${Math.floor(new Date(post.record.createdAt).getTime() / 1000)}:F>`,
|
||||
}
|
||||
: {
|
||||
type: 9,
|
||||
|
@ -1485,7 +1481,7 @@ async function processUrl(msg, url, spoiler = false, command = false, inQuote =
|
|||
const footer = minimal
|
||||
? {
|
||||
type: 10,
|
||||
content: `${footerIcon ? footerIcon + " " : ""}${platformName} \u2022 <t:${Math.floor(
|
||||
content: `${platformName === "Twitter" ? "" : platformName + " "}<t:${Math.floor(
|
||||
new Date(timestamp).getTime() / 1000
|
||||
)}:F>`,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue