group_ids must be converted to strings

This commit is contained in:
Daniel Vincent Grippi 2010-09-12 21:47:03 -07:00
parent 1874ebe51d
commit cf48079446

View file

@ -181,7 +181,7 @@ class User
######### Posts and Such ###############
def retract( post )
group_ids = groups_with_post( post.id )
group_ids.map!{|group| group.id}
group_ids.map!{|group| group.id.to_s}
post.unsocket_from_uid(self.id, :group_ids => group_ids) if post.respond_to? :unsocket_from_uid
retraction = Retraction.for(post)