Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
849a5476ab
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ class AspectsController < ApplicationController
|
|||
post_ids = @aspects.map{|a| a.post_ids}.flatten!
|
||||
|
||||
@posts = StatusMessage.joins(:aspects).where(:pending => false,
|
||||
:aspects => {:id => @aspect_ids}).includes(:person, :comments => :person, :photos).select('DISTINCT `posts`.*').paginate(
|
||||
:aspects => {:id => @aspect_ids}).includes(:person, {:comments => :person}, :photos).select('DISTINCT `posts`.*').paginate(
|
||||
:page => params[:page], :per_page => 15, :order => 'created_at DESC')
|
||||
|
||||
@contacts = current_user.contacts.includes(:person).where(:pending => false)
|
||||
|
|
|
|||
Loading…
Reference in a new issue