fedimbed: javascript moment

This commit is contained in:
Cynthia Foxwell 2025-03-28 17:20:01 -06:00
parent 1e5c56c0d6
commit f86e33ef3e
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -997,7 +997,7 @@ async function processUrl(msg, url, spoiler = false, command = false) {
}
}
if (postData.attachment) {
if (postData.attachment != null) {
// NB: gts doesnt send singular attachments as array
const attachments = Array.isArray(postData.attachment) ? postData.attachment : [postData.attachment];
for (const attachment of attachments) {