diff --git a/app/controllers/explore/posts_controller.rb b/app/controllers/explore/posts_controller.rb index 20e289356..7d12924ea 100644 --- a/app/controllers/explore/posts_controller.rb +++ b/app/controllers/explore/posts_controller.rb @@ -51,11 +51,11 @@ module Explore end def popular_posts(min_date, max_date) - Post.where(created_at: min_date..max_date).user_tag_match("order:score") + Post.where(created_at: min_date..max_date).includes(:media_asset).user_tag_match("order:score") end def curated_posts(min_date, max_date) - Post.where(created_at: min_date..max_date).user_tag_match("order:curated") + Post.where(created_at: min_date..max_date).includes(:media_asset).user_tag_match("order:curated") end end end