MS DG following now works on identica, you subscribe, and then identica spams you for the rest of your life

This commit is contained in:
maxwell 2010-07-22 13:53:39 -07:00
parent daf0de2eb0
commit b3668956ab
3 changed files with 3 additions and 2 deletions

View file

@ -20,6 +20,8 @@ class PublicsController < ApplicationController
def hubbub
if params['hub.mode'] == 'subscribe' || params['hub.mode'] == 'unsubscribe'
render :text => params['hub.challenge'], :status => 202
else
puts request.body.read.inspect
end
end

View file

@ -72,7 +72,6 @@ module Diaspora
end
def subscribe_to_ostatus(feed_url)
puts feed_url
@@queue.add_subscription_request(feed_url)
@@queue.process
end

View file

@ -57,7 +57,7 @@ class MessageHandler
http.callback { process}
when :hub_subscribe
http = EventMachine::PubSubHubbub.new(query.destination).subscribe query.body, User.owner.url, :timeout => TIMEOUT
http = EventMachine::PubSubHubbub.new(query.destination).subscribe query.body, User.owner.url + 'hubbub', :timeout => TIMEOUT
http.callback { process}
else
raise "message is not a type I know!"