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({
|
files.push({
|
||||||
url: attachment.url,
|
url: attachment.url,
|
||||||
desc: attachment.description ?? attachment.comment,
|
desc: attachment.description ?? attachment.comment,
|
||||||
type: contentType,
|
type: contentType
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -316,7 +316,7 @@ async function processUrl(url) {
|
||||||
files.push({
|
files.push({
|
||||||
url: attachment.url,
|
url: attachment.url,
|
||||||
desc: attachment.description ?? attachment.comment,
|
desc: attachment.description ?? attachment.comment,
|
||||||
type: fileType,
|
type: type
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -383,7 +383,7 @@ async function processUrl(url) {
|
||||||
files.push({
|
files.push({
|
||||||
url: attachment.url,
|
url: attachment.url,
|
||||||
desc: attachment.name ?? attachment.description ?? attachment.comment,
|
desc: attachment.name ?? attachment.description ?? attachment.comment,
|
||||||
type: contentType,
|
type: contentType
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -399,7 +399,7 @@ async function processUrl(url) {
|
||||||
files.push({
|
files.push({
|
||||||
url: attachment.url,
|
url: attachment.url,
|
||||||
desc: attachment.name ?? attachment.description ?? attachment.comment,
|
desc: attachment.name ?? attachment.description ?? attachment.comment,
|
||||||
type: fileType,
|
type: type
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ async function onMessage(client, event) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
media.src = await client.uploadMedia(file.url);
|
media.src = await client.uploadMedia(file.url);
|
||||||
media.alt = file.desc;
|
media.alt = media.title = file.desc ?? "";
|
||||||
quote.appendChild(media);
|
quote.appendChild(media);
|
||||||
}
|
}
|
||||||
document.body.appendChild(quote);
|
document.body.appendChild(quote);
|
||||||
|
|
Loading…
Reference in a new issue