title with alt

This commit is contained in:
Ashley 2024-08-27 15:30:14 +00:00
parent 44aafaa0b7
commit 328c817136
2 changed files with 5 additions and 5 deletions

View file

@ -296,7 +296,7 @@ async function processUrl(url) {
files.push({
url: attachment.url,
desc: attachment.description ?? attachment.comment,
type: contentType,
type: contentType
});
}
} else {
@ -316,7 +316,7 @@ async function processUrl(url) {
files.push({
url: attachment.url,
desc: attachment.description ?? attachment.comment,
type: fileType,
type: type
});
}
}
@ -383,7 +383,7 @@ async function processUrl(url) {
files.push({
url: attachment.url,
desc: attachment.name ?? attachment.description ?? attachment.comment,
type: contentType,
type: contentType
});
}
} else {
@ -399,7 +399,7 @@ async function processUrl(url) {
files.push({
url: attachment.url,
desc: attachment.name ?? attachment.description ?? attachment.comment,
type: fileType,
type: type
});
}
}

View file

@ -60,7 +60,7 @@ async function onMessage(client, event) {
break;
}
media.src = await client.uploadMedia(file.url);
media.alt = file.desc;
media.alt = media.title = file.desc ?? "";
quote.appendChild(media);
}
document.body.appendChild(quote);