Fixing deploy friending

This commit is contained in:
Raphael 2010-07-16 09:59:06 -07:00
parent cae5700222
commit 05e6dada58
2 changed files with 19 additions and 10 deletions

View file

@ -36,17 +36,17 @@ class DashboardsController < ApplicationController
def zombiefriends
render :nothing => true
backer_info = ["http://washington.joindiaspora.com/",
"http://adams.joindiaspora.com/",
"http://jefferson.joindiaspora.com/",
"http://madison.joindiaspora.com/",
"http://monroe.joindiaspora.com/",
backer_info = ["http://washington.joindiaspora.com/",
"http://adams.joindiaspora.com/",
"http://jefferson.joindiaspora.com/",
"http://madison.joindiaspora.com/",
"http://monroe.joindiaspora.com/",
"http://quincyadams.joindiaspora.com/",
"http://jackson.joindiaspora.com/",
"http://buren.joindiaspora.com/",
"http://harrison.joindiaspora.com/",
"http://tyler.joindiaspora.com/",
"http://polk.joindiaspora.com/",
"http://jackson.joindiaspora.com/",
"http://buren.joindiaspora.com/",
"http://harrison.joindiaspora.com/",
"http://tyler.joindiaspora.com/",
"http://polk.joindiaspora.com/",
#"http://taylor.joindiaspora.com/",
#"http://fillmore.joindiaspora.com/",
#"http://pierce.joindiaspora.com/",
@ -59,4 +59,12 @@ class DashboardsController < ApplicationController
end
end
end
def zombiefriendaccept
Request.all.each{|r|
User.owner.accept_friend_request(r.id)
}
end
end

View file

@ -8,6 +8,7 @@ Diaspora::Application.routes.draw do |map|
match 'warzombie', :to => "dashboards#warzombie"
match 'zombiefriends', :to => "dashboards#zombiefriends"
match 'zombiefriendaccept', :to => "dashboards#zombiefriendaccept"
#routes for devise, not really sure you will need to mess with this in the future, lets put default,
#non mutable stuff in anohter file