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

Salmon for retractions and profiles

parent a449afca
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -186,7 +186,7 @@ class User ...@@ -186,7 +186,7 @@ class User
post.unsocket_from_uid(self.id) if post.respond_to? :unsocket_from_uid post.unsocket_from_uid(self.id) if post.respond_to? :unsocket_from_uid
retraction = Retraction.for(post) retraction = Retraction.for(post)
retraction.creator_signature = retraction.sign_with_key( encryption_key ) retraction.creator_signature = retraction.sign_with_key( encryption_key )
retraction.push_to( self.friends.all ) push_to_groups retraction, groups_with_post(post).map!{|g| g.id}
retraction retraction
end end
...@@ -195,7 +195,7 @@ class User ...@@ -195,7 +195,7 @@ class User
params[:profile].delete(:image_url) if params[:profile][:image_url].empty? params[:profile].delete(:image_url) if params[:profile][:image_url].empty?
if self.person.update_attributes(params) if self.person.update_attributes(params)
self.profile.push_to( self.friends.all ) push_to_groups profile, :all
true true
else else
false false
......
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