4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'app/controllers/remoteusers_controller.rb', line 4
def index
if params[:slug].present?
u = RemoteSubject.find_or_create_using_wslug(params[:slug])
t = Tie.create!(:sender => current_user.actor,
:receiver => u.actor,
:relation_name => "friend")
t = Thread.new do
uri = URI.parse(Social2social.hub)
response = Net::HTTP::post_form(uri,{ 'hub.callback' => pshb_callback_url,
'hub.mode' => "subscribe",
'hub.topic' => u.public_feed_url,
'hub.verify' => 'sync'})
end
end
respond_to do |format|
format.html
end
end
|