From 62994f1660e911c65f1a7e75e1504ccec74073b2 Mon Sep 17 00:00:00 2001 From: Daniel Vincent Grippi Date: Sun, 12 Sep 2010 21:24:22 -0700 Subject: [PATCH] retractions should now actually websocket again --- app/models/user.rb | 3 ++- lib/diaspora/websocket.rb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 6f53be3c6..e4be82449 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -180,7 +180,8 @@ class User ######### Posts and Such ############### def retract( post ) - post.unsocket_from_uid(self.id) if post.respond_to? :unsocket_from_uid + group_ids = groups_with_post( post.id ) + post.unsocket_from_uid(self.id, :group_ids => group_ids) if post.respond_to? :unsocket_from_uid retraction = Retraction.for(post) push_to_people retraction, people_in_groups(groups_with_post(post.id)) retraction diff --git a/lib/diaspora/websocket.rb b/lib/diaspora/websocket.rb index f9368356a..af0684e77 100644 --- a/lib/diaspora/websocket.rb +++ b/lib/diaspora/websocket.rb @@ -35,8 +35,8 @@ module Diaspora SocketsController.new.outgoing(id, self, opts) end - def unsocket_from_uid id - SocketsController.new.outgoing(id, Retraction.for(self)) + def unsocket_from_uid(id, opts={}) + SocketsController.new.outgoing(id, Retraction.for(self), opts) end end