Don't get posts for a hovercard request

This commit is contained in:
Raphael Sofaer 2011-07-06 14:11:07 -07:00
parent 4c380b4edf
commit 9765bdc391

View file

@ -75,6 +75,7 @@ class PeopleController < ApplicationController
if @person
@profile = @person.profile
unless params[:format] == "json" # hovercard
if current_user
@contact = current_user.contact_for(@person)
@aspects_with_person = []
@ -102,6 +103,7 @@ class PeopleController < ApplicationController
end
@posts = PostsFake.new(@posts)
end
if params[:only_posts]
render :partial => 'shared/stream', :locals => {:posts => @posts}
@ -120,7 +122,6 @@ class PeopleController < ApplicationController
end
end
def retrieve_remote
if params[:diaspora_handle]
webfinger(params[:diaspora_handle], :single_aspect_form => true)