Skip to content
Extraits de code Groupes Projets
Valider 1a44cf5a rédigé par ilya's avatar ilya
Parcourir les fichiers

DG IZ push to wrapped to check before sending off a friend req

parent e7ac8bec
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -26,7 +26,7 @@ class FriendRequest
end
def send_off
push_to [self.recipient]
push_to_recipient self.recipient
end
end
......@@ -66,6 +66,11 @@ module Diaspora
end
end
def push_to_recipient(recipient)
if self.sender_id == User.first.id
push_to( [recipient] )
end
end
def prep_webhook
"<post>#{self.to_xml.to_s}</post>"
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter