commento.js: better undefined user link checks
Closes https://gitlab.com/commento/commento-ce/issues/63
This commit is contained in:
parent
199e650147
commit
88b88a1198
@ -585,7 +585,7 @@
|
|||||||
var contents = create("div");
|
var contents = create("div");
|
||||||
var color = colorGet(commenter.name);
|
var color = colorGet(commenter.name);
|
||||||
var name;
|
var name;
|
||||||
if (commenter.link != "undefined")
|
if (commenter.link != "undefined" && commenter.link != "https://undefined" && commenter.link != "")
|
||||||
name = create("a");
|
name = create("a");
|
||||||
else
|
else
|
||||||
name = create("div");
|
name = create("div");
|
||||||
@ -694,7 +694,7 @@
|
|||||||
else
|
else
|
||||||
attrSet(reply, "onclick", "loginBoxShow()");
|
attrSet(reply, "onclick", "loginBoxShow()");
|
||||||
|
|
||||||
if (commenter.link != "undefined")
|
if (commenter.link != "undefined" && commenter.link != "https://undefined" && commenter.link != "")
|
||||||
attrSet(name, "href", commenter.link);
|
attrSet(name, "href", commenter.link);
|
||||||
|
|
||||||
append(options, collapse);
|
append(options, collapse);
|
||||||
|
Loading…
Reference in New Issue
Block a user