From afaac95d8d3891614b312cd1eb7e992a53cd2b5f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 7 Apr 2020 06:50:24 +0300 Subject: if comment URL is not specified but comment count is non-zero, show comments prompt leading to the article --- js/Article.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/Article.js') diff --git a/js/Article.js b/js/Article.js index 50447c2a1..b9f35c706 100644 --- a/js/Article.js +++ b/js/Article.js @@ -149,14 +149,14 @@ define(["dojo/_base/declare"], function (declare) { formatComments: function(hl) { let comments = ""; - if (hl.comments) { + if (hl.comments || hl.num_comments > 0) { let comments_msg = __("comments"); if (hl.num_comments > 0) { comments_msg = hl.num_comments + " " + ngettext("comment", "comments", hl.num_comments) } - comments = `(${comments_msg})`; + comments = `(${comments_msg})`; } return comments; -- cgit v1.2.3