lets see if that fixes the build

This commit is contained in:
MrZYX 2011-04-02 15:53:11 +02:00
parent 1a1a06118f
commit a1c3a6dc1e
2 changed files with 3 additions and 3 deletions

View file

@ -91,10 +91,10 @@ class PeopleController < ApplicationController
else
@commenting_disabled = false
end
@posts = current_user.posts_from(@person).where(:type => "StatusMessage").paginate(:per_page => 15, :page => params[:page])
@posts = current_user.posts_from(@person).where(:type => "StatusMessage").includes(:comments).paginate(:per_page => 15, :page => params[:page])
else
@commenting_disabled = true
@posts = @person.posts.where(:type => "StatusMessage", :public => true).paginate(:per_page => 15, :page => params[:page], :order => 'created_at DESC')
@posts = @person.posts.where(:type => "StatusMessage", :public => true).includes(:comments).paginate(:per_page => 15, :page => params[:page], :order => 'created_at DESC')
end
@fakes = PostsFake.new(@posts)

View file

@ -48,7 +48,7 @@ module Diaspora
end
def contact_for_person_id(person_id)
Contact.unscoped.where(:user_id => self.id, :person_id => person_id).first if person_id
Contact.unscoped.where(:user_id => self.id, :person_id => person_id).includes(:person => :profile).first if person_id
end
def people_in_aspects(requested_aspects, opts={})