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:
parent
daf0de2eb0
commit
b3668956ab
3 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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!"
|
||||
|
|
|
|||
Loading…
Reference in a new issue