pass group not id into send_friend_request

This commit is contained in:
Raphael 2010-09-10 17:00:19 -07:00
parent 17be027738
commit d9bb850b5b

View file

@ -30,7 +30,7 @@ def warzombie
backer_email = "#{backer['username']}@#{backer['username']}.joindiaspora.com"
rel_hash = relationship_flow(backer_email)
logger.info "Zombefriending #{backer['given_name']} #{backer['family_name']}"
current_user.send_friend_request_to(rel_hash[:friend], current_user.groups.first.id)
current_user.send_friend_request_to(rel_hash[:friend], current_user.groups.first)
end
end
end