RS, IZ; updated DB seed to have a group, zombiefriend with a group
This commit is contained in:
parent
7bd1193c5e
commit
ef97b4f19d
2 changed files with 3 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ def warzombie
|
||||||
if current_user.email == "tom@tom.joindiaspora.com" && current_user.friends.first.nil?
|
if current_user.email == "tom@tom.joindiaspora.com" && current_user.friends.first.nil?
|
||||||
bkr_info.each do |backer|
|
bkr_info.each do |backer|
|
||||||
logger.debug "Zombefriending #{backer['given_name']} #{backer['family_name']}"
|
logger.debug "Zombefriending #{backer['given_name']} #{backer['family_name']}"
|
||||||
current_user.send_friend_request_to("http://#{backer['username']}.joindiaspora.com/")
|
current_user.send_friend_request_to("http://#{backer['username']}.joindiaspora.com/", current_user.groups.first.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -36,7 +36,7 @@ def warzombie
|
||||||
def zombiefriendaccept
|
def zombiefriendaccept
|
||||||
render :nothing => true
|
render :nothing => true
|
||||||
Request.all.each{|r|
|
Request.all.each{|r|
|
||||||
current_user.accept_friend_request(r.id)
|
current_user.accept_friend_request(r.id, current_user.groups.first.id)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,5 +23,6 @@ def create(backer_number)
|
||||||
:url=> "http://#{username}.joindiaspora.com/")
|
:url=> "http://#{username}.joindiaspora.com/")
|
||||||
)
|
)
|
||||||
user.person.save
|
user.person.save
|
||||||
|
user.group(:name => "Presidents")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue