mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-28 22:55:39 -04:00
commento.js: use question mark for anonymous comments
This commit is contained in:
@ -732,7 +732,14 @@
|
||||
if (commenter.photo === "undefined") {
|
||||
avatar = create("div");
|
||||
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");
|
||||
} else {
|
||||
avatar = create("img");
|
||||
|
Reference in New Issue
Block a user