fedimbed: fix no stats

This commit is contained in:
Cynthia Foxwell 2025-04-18 18:31:31 -06:00
parent 89f2306baa
commit 3d56947d05
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -1418,7 +1418,9 @@ async function processUrl(msg, url, spoiler = false, command = false) {
components: [ components: [
{ {
type: 10, type: 10,
content: `-# ${stats}\n${platformName} \u2022 <t:${Math.floor(new Date(timestamp).getTime() / 1000)}:F>`, content: `${stats.length > 0 ? "-# " + stats + "\n" : ""}${platformName} \u2022 <t:${Math.floor(
new Date(timestamp).getTime() / 1000
)}:F>`,
}, },
], ],
accessory: { accessory: {