Layout false on all publics controller routes
This commit is contained in:
parent
c6aff4a562
commit
3e9a36e1f1
1 changed files with 4 additions and 3 deletions
|
|
@ -1,23 +1,24 @@
|
|||
class PublicsController < ApplicationController
|
||||
require 'lib/diaspora/parser'
|
||||
include Diaspora::Parser
|
||||
layout false
|
||||
|
||||
def hcard
|
||||
@person = Person.find_by_id params[:id]
|
||||
|
||||
puts @person
|
||||
unless @person.nil? || @person.owner.nil?
|
||||
render 'hcard'
|
||||
end
|
||||
end
|
||||
|
||||
def host_meta
|
||||
render 'host_meta', :layout => false, :content_type => 'application/xrd+xml'
|
||||
render 'host_meta', :content_type => 'application/xrd+xml'
|
||||
end
|
||||
|
||||
def webfinger
|
||||
@person = Person.by_webfinger(params[:q])
|
||||
unless @person.nil? || @person.owner.nil?
|
||||
render 'webfinger', :layout => false, :content_type => 'application/xrd+xml'
|
||||
render 'webfinger', :content_type => 'application/xrd+xml'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue