Skip to content

Commit

Permalink
Update wiki_controller.rb (publiclab#2362)
Browse files Browse the repository at this point in the history
Resolves issue publiclab#2310
  • Loading branch information
jsmayo authored and Souravirus committed Mar 12, 2018
1 parent 67b79e3 commit c19646f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/wiki_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c19646f

Please sign in to comment.