commento.js: fix anonymous selfHex logic in commentNew
This commit is contained in:
parent
8c09aa0ff6
commit
3f7b65dee9
@ -540,17 +540,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (message !== "") {
|
if (message !== "") {
|
||||||
if (id === "root") {
|
prepend($(ID_SUPER_CONTAINER + id), messageCreate(message));
|
||||||
prepend($(ID_SUPER_CONTAINER + id), messageCreate(message));
|
|
||||||
} else {
|
|
||||||
append($(ID_BODY + id), messageCreate(message));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var commenterHex = selfHex;
|
||||||
|
if (commenterHex === undefined && commenterTokenGet() === "anonymous") {
|
||||||
|
commenterHex = "anonymous";
|
||||||
|
}
|
||||||
|
|
||||||
var newCard = commentsRecurse({
|
var newCard = commentsRecurse({
|
||||||
"root": [{
|
"root": [{
|
||||||
"commentHex": resp.commentHex,
|
"commentHex": resp.commentHex,
|
||||||
"commenterHex": selfHex,
|
"commenterHex": commenterHex,
|
||||||
"markdown": markdown,
|
"markdown": markdown,
|
||||||
"html": resp.html,
|
"html": resp.html,
|
||||||
"parentHex": "root",
|
"parentHex": "root",
|
||||||
|
Loading…
Reference in New Issue
Block a user