explore/posts/viewed: refactor post previews.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user