dont try to preload photos as they are only for StatusMessages. ugh.

This commit is contained in:
danielgrippi 2011-07-04 16:38:28 -07:00
parent 85d6eb70e7
commit 00448f615e

View file

@ -38,7 +38,7 @@ class AspectsController < ApplicationController
:type => ['StatusMessage','ActivityStreams::Photo'], :type => ['StatusMessage','ActivityStreams::Photo'],
:order => session[:sort_order] + ' DESC', :order => session[:sort_order] + ' DESC',
:max_time => params[:max_time].to_i :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) @posts = PostsFake.new(posts)
if params[:only_posts] if params[:only_posts]