move explore links to sidebar, fix popular searches action

This commit is contained in:
r888888888
2017-11-13 11:14:09 -08:00
parent e739dc77d7
commit 36948bbf33
8 changed files with 45 additions and 22 deletions

View File

@@ -33,6 +33,6 @@ class PostViewCountService
def popular_posts(date = Date.today)
ranking = fetch_rank(date) || []
ranking.map {|x| Post.find(x[0])}
ranking.slice(0, 50).map {|x| Post.find(x[0])}
end
end