fix: add avatar img alt (#1308)

This commit is contained in:
Eric 2021-01-25 21:22:07 +08:00 committed by Sebastian McKenzie
parent 0b80809c93
commit 8c7cb2dfcf

View file

@ -128,7 +128,9 @@ export async function main(args: string[]) {
username,
)}">`,
);
lines.push(`<img src="${escapeXHTMLEntities(avatar)}">`);
lines.push(
`<img src="${escapeXHTMLEntities(avatar)}" alt="${username}">`,
);
lines.push(`<span>${escapeXHTMLEntities(username)}</span>`);
lines.push("</a></li>");
}