Layout false on all publics controller routes

This commit is contained in:
Raphael 2010-09-09 14:15:20 -07:00
parent c6aff4a562
commit 3e9a36e1f1

View file

@ -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