commento.js: use question mark for anonymous comments
This commit is contained in:
parent
97f17d32ee
commit
672863b48f
@ -732,7 +732,14 @@
|
|||||||
if (commenter.photo === "undefined") {
|
if (commenter.photo === "undefined") {
|
||||||
avatar = create("div");
|
avatar = create("div");
|
||||||
avatar.style["background"] = color;
|
avatar.style["background"] = color;
|
||||||
avatar.innerHTML = commenter.name[0].toUpperCase();
|
|
||||||
|
if (comment.commenterHex === "anonymous") {
|
||||||
|
avatar.innerHTML = "?";
|
||||||
|
avatar.style["font-weight"] = "bold";
|
||||||
|
} else {
|
||||||
|
avatar.innerHTML = commenter.name[0].toUpperCase();
|
||||||
|
}
|
||||||
|
|
||||||
classAdd(avatar, "avatar");
|
classAdd(avatar, "avatar");
|
||||||
} else {
|
} else {
|
||||||
avatar = create("img");
|
avatar = create("img");
|
||||||
|
Loading…
Reference in New Issue
Block a user