dont try to preload photos as they are only for StatusMessages. ugh.
This commit is contained in:
parent
85d6eb70e7
commit
00448f615e
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue