commento.js: better undefined user link checks

Closes https://gitlab.com/commento/commento-ce/issues/63
This commit is contained in:
Adhityaa Chandrasekar 2018-08-08 13:17:29 +05:30
parent 199e650147
commit 88b88a1198

View File

@ -585,7 +585,7 @@
var contents = create("div");
var color = colorGet(commenter.name);
var name;
if (commenter.link != "undefined")
if (commenter.link != "undefined" && commenter.link != "https://undefined" && commenter.link != "")
name = create("a");
else
name = create("div");
@ -694,7 +694,7 @@
else
attrSet(reply, "onclick", "loginBoxShow()");
if (commenter.link != "undefined")
if (commenter.link != "undefined" && commenter.link != "https://undefined" && commenter.link != "")
attrSet(name, "href", commenter.link);
append(options, collapse);