From 88b88a1198ad4f2a87eaa72deb6762975ee94944 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 8 Aug 2018 13:17:29 +0530 Subject: [PATCH] commento.js: better undefined user link checks Closes https://gitlab.com/commento/commento-ce/issues/63 --- frontend/js/commento.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index 52908a7..4616792 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -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);