diff --git a/app/controllers/publics_controller.rb b/app/controllers/publics_controller.rb index 76748837d..fc08c28f6 100644 --- a/app/controllers/publics_controller.rb +++ b/app/controllers/publics_controller.rb @@ -16,6 +16,7 @@ class PublicsController < ApplicationController end def hubbub + puts params.inspect if params['hub.mode'] == "subscribe" render :text => params['hub.challenge'], :status => 202 end diff --git a/config/routes.rb b/config/routes.rb index 96f0a0231..06f7cbe0d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -18,7 +18,7 @@ Diaspora::Application.routes.draw do |map| resources :users match 'receive', :to => 'dashboards#receive' - match 'hub', :to => 'publics#hubbub' + match 'hubbub', :to => 'publics#hubbub' match '.well-known/host-meta', :to => 'publics#host_meta' match 'webfinger', :to => 'publics#webfinger' root :to => 'dashboards#index'