retractions should now actually websocket again

This commit is contained in:
Daniel Vincent Grippi 2010-09-12 21:24:22 -07:00
parent 31df3cea11
commit 62994f1660
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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