explore/posts/viewed: refactor post previews.

This commit is contained in:
evazion
2020-01-12 21:33:31 -06:00
parent 083ce75c10
commit 74ce866890
5 changed files with 4 additions and 76 deletions

View File

@@ -10,8 +10,7 @@ module Explore
end
def viewed
@post_set = PostSets::MostViewed.new(@date.to_s)
@posts = @post_set.posts
@posts = PostViewCountService.new.popular_posts(@date)
respond_with(@posts)
end