From 00448f615ed7a953465a74aa4bc8cacc0903e651 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Mon, 4 Jul 2011 16:38:28 -0700 Subject: [PATCH] dont try to preload photos as they are only for StatusMessages. ugh. --- app/controllers/aspects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/aspects_controller.rb b/app/controllers/aspects_controller.rb index fbc39116f..2f4317195 100644 --- a/app/controllers/aspects_controller.rb +++ b/app/controllers/aspects_controller.rb @@ -38,7 +38,7 @@ class AspectsController < ApplicationController :type => ['StatusMessage','ActivityStreams::Photo'], :order => session[:sort_order] + ' DESC', :max_time => params[:max_time].to_i - ).includes(:photos, :likes, {:comments => {:author => :profile}}, {:mentions => {:person => :profile}}) + ).includes(:likes, {:comments => {:author => :profile}}, {:mentions => {:person => :profile}}) @posts = PostsFake.new(posts) if params[:only_posts]