diff options
author | Azul <azul@leap.se> | 2013-01-22 15:46:47 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-01-22 15:46:47 +0100 |
commit | 31d18779fe1af0c55b72be7bc554302322025ee5 (patch) | |
tree | dcb22beb288851ea645e9e462711f61ce6a697e8 /users/app/controllers | |
parent | 0d1da13914675790daaf8def26f27017bf2d2a44 (diff) |
adding json jrd responses to webfinger
Diffstat (limited to 'users/app/controllers')
-rw-r--r-- | users/app/controllers/webfinger_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/users/app/controllers/webfinger_controller.rb b/users/app/controllers/webfinger_controller.rb index ac05934..d3a4ad3 100644 --- a/users/app/controllers/webfinger_controller.rb +++ b/users/app/controllers/webfinger_controller.rb @@ -1,15 +1,18 @@ class WebfingerController < ApplicationController + respond_to :xml, :json layout false def host_meta @host_meta = Webfinger::HostMetaPresenter.new(request) + respond_with @host_meta end def search username = params[:q].split('@')[0].to_s.downcase user = User.find_by_login(username) || not_found @subject = Webfinger::UserPresenter.new(user, request) + respond_with @subject end end |