retractions should now actually websocket again
This commit is contained in:
parent
31df3cea11
commit
62994f1660
2 changed files with 4 additions and 3 deletions
|
|
@ -180,7 +180,8 @@ class User
|
||||||
|
|
||||||
######### Posts and Such ###############
|
######### Posts and Such ###############
|
||||||
def retract( post )
|
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)
|
retraction = Retraction.for(post)
|
||||||
push_to_people retraction, people_in_groups(groups_with_post(post.id))
|
push_to_people retraction, people_in_groups(groups_with_post(post.id))
|
||||||
retraction
|
retraction
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ module Diaspora
|
||||||
SocketsController.new.outgoing(id, self, opts)
|
SocketsController.new.outgoing(id, self, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def unsocket_from_uid id
|
def unsocket_from_uid(id, opts={})
|
||||||
SocketsController.new.outgoing(id, Retraction.for(self))
|
SocketsController.new.outgoing(id, Retraction.for(self), opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue