title with alt
This commit is contained in:
parent
44aafaa0b7
commit
328c817136
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue