Don't get posts for a hovercard request
This commit is contained in:
parent
4c380b4edf
commit
9765bdc391
1 changed files with 24 additions and 23 deletions
|
|
@ -75,6 +75,7 @@ class PeopleController < ApplicationController
|
||||||
if @person
|
if @person
|
||||||
@profile = @person.profile
|
@profile = @person.profile
|
||||||
|
|
||||||
|
unless params[:format] == "json" # hovercard
|
||||||
if current_user
|
if current_user
|
||||||
@contact = current_user.contact_for(@person)
|
@contact = current_user.contact_for(@person)
|
||||||
@aspects_with_person = []
|
@aspects_with_person = []
|
||||||
|
|
@ -102,6 +103,7 @@ class PeopleController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
@posts = PostsFake.new(@posts)
|
@posts = PostsFake.new(@posts)
|
||||||
|
end
|
||||||
|
|
||||||
if params[:only_posts]
|
if params[:only_posts]
|
||||||
render :partial => 'shared/stream', :locals => {:posts => @posts}
|
render :partial => 'shared/stream', :locals => {:posts => @posts}
|
||||||
|
|
@ -120,7 +122,6 @@ class PeopleController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def retrieve_remote
|
def retrieve_remote
|
||||||
if params[:diaspora_handle]
|
if params[:diaspora_handle]
|
||||||
webfinger(params[:diaspora_handle], :single_aspect_form => true)
|
webfinger(params[:diaspora_handle], :single_aspect_form => true)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue