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 ###############
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue