Skip to content
Extraits de code Groupes Projets
Valider 82578ad8 rédigé par maxwell's avatar maxwell
Parcourir les fichiers

MS IZ doing the friend querying correctly in user

parent 4243d8ef
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -31,7 +31,7 @@ class User
######### Friend Requesting
def send_friend_request_to(friend_url)
unless self.friends.where(:url => friend_url).first
unless self.friends.find{ |x| x.url == friend_url}
p = Request.instantiate(:to => friend_url, :from => self.person)
if p.save
p.push_to_url friend_url
......
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