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
|
||||
@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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue