diff --git a/app/controllers/dashboards_controller.rb b/app/controllers/dashboards_controller.rb index aa0780f87..7645bba17 100644 --- a/app/controllers/dashboards_controller.rb +++ b/app/controllers/dashboards_controller.rb @@ -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 diff --git a/config/routes.rb b/config/routes.rb index 9117e42e1..e1ca70581 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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