Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
2800f9351c
1 changed files with 8 additions and 1 deletions
|
|
@ -86,7 +86,14 @@ class User
|
|||
group_ids = options.delete(:to)
|
||||
end
|
||||
|
||||
group_ids = [group_ids] if group_ids.is_a? BSON::ObjectId
|
||||
group_ids = [group_ids.to_s] if group_ids.is_a? BSON::ObjectId
|
||||
|
||||
Rails.logger.debug("GROUP IDS FOR POST IS THIS:")
|
||||
Rails.logger.debug(group_ids.inspect)
|
||||
|
||||
|
||||
|
||||
|
||||
raise ArgumentError.new("You must post to someone.") if group_ids.nil? || group_ids.empty?
|
||||
|
||||
post = build_post(class_name, options)
|
||||
|
|
|
|||
Loading…
Reference in a new issue