From 0ed6a3b46037e4844f9d79da4097bdfcc76813ed Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 12 Feb 2018 14:10:59 -0500 Subject: [PATCH] Update wiki_controller.rb Resolves issue #2310 --- app/controllers/wiki_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 24523604fe..50fbba2249 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -335,8 +335,9 @@ def popular def liked @title = I18n.t('wiki_controller.well_liked_wiki_pages') @wikis = Node.limit(40) - .order('node.cached_likes DESC') - .where("status = 1 AND nid != 259 AND (type = 'page' OR type = 'tool' OR type = 'place') AND cached_likes > 0") + .order('node.cached_likes DESC') + .where("status = 1 AND nid != 259 AND (type = 'page' OR type = 'tool' OR type = 'place') AND cached_likes >= 0") + render template: 'wiki/index' end