Skip to content
Extraits de code Groupes Projets
Valider 16b6fc6c rédigé par Raphael's avatar Raphael
Parcourir les fichiers

Don't give exception on webfinger with no query

parent d748d456
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -20,7 +20,7 @@ class PublicsController < ApplicationController ...@@ -20,7 +20,7 @@ class PublicsController < ApplicationController
end end
def webfinger 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? unless @person.nil? || @person.owner.nil?
render 'webfinger', :content_type => 'application/xrd+xml' render 'webfinger', :content_type => 'application/xrd+xml'
else else
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter