Don't give exception on webfinger with no query
This commit is contained in:
parent
d748d456b5
commit
16b6fc6cdc
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class PublicsController < ApplicationController
|
|||
end
|
||||
|
||||
def webfinger
|
||||
@person = Person.by_webfinger(params[:q], :local => true)
|
||||
@person = Person.by_webfinger(params[:q], :local => true) if params[:q]
|
||||
unless @person.nil? || @person.owner.nil?
|
||||
render 'webfinger', :content_type => 'application/xrd+xml'
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue