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 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);
|
||||
|
Loading…
Reference in New Issue
Block a user