commento.js: use question mark for anonymous comments

This commit is contained in:
Adhityaa Chandrasekar 2019-04-13 21:18:28 -04:00
parent 97f17d32ee
commit 672863b48f

View File

@ -732,7 +732,14 @@
if (commenter.photo === "undefined") {
avatar = create("div");
avatar.style["background"] = color;
if (comment.commenterHex === "anonymous") {
avatar.innerHTML = "?";
avatar.style["font-weight"] = "bold";
} else {
avatar.innerHTML = commenter.name[0].toUpperCase();
}
classAdd(avatar, "avatar");
} else {
avatar = create("img");