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

Requesting now searches the local server by email for a matching person.

parent e32315b6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -26,12 +26,13 @@ module RequestsHelper
end
def relationship_flow(identifier)
puts request.host
if identifier.include?(request.host)
person = Person.by_webfinger identifier
action = (person == current_user.person ? :none : :friend)
url = person.owner.receive_url
else
action = :none
url = nil
local_person = Person.by_webfinger identifier
if local_person
action = (local_person == current_user.local_person ? :none : :friend)
url = local_person.receive_url
elsif !(identifier.include?(request.host) || identifier.include?("localhost"))
f = Redfinger.finger(identifier)
action = subscription_mode(f)
url = subscription_url(action, f)
......
......@@ -40,7 +40,7 @@ class Person
this.profile.first_name.match(/^#{query}/i) ||
this.profile.last_name.match(/^#{query}/i); }")
end
def real_name
"#{profile.first_name.to_s} #{profile.last_name.to_s}"
end
......
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