Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
f80b0b80b5
3 changed files with 4 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ class Person
|
|||
local_person
|
||||
elsif !identifier.include?("localhost") && !opts[:local]
|
||||
begin
|
||||
puts "begin finger"
|
||||
Rails.logger.info("Webfingering #{identifier}")
|
||||
f = Redfinger.finger(identifier)
|
||||
rescue SocketError => e
|
||||
raise "Diaspora server for #{identifier} not found" if e.message =~ /Name or service not known/
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ end
|
|||
ws.onclose { Diaspora::WebSocket.unsubscribe(ws.request['Path'].gsub('/',''), sid) }
|
||||
}
|
||||
end
|
||||
puts "Websocket server started."
|
||||
process_message
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,9 @@ describe Diaspora::WebSocket do
|
|||
end
|
||||
|
||||
it 'The queued job should reach Magent' do
|
||||
Magent.should_receive(:push)
|
||||
@post.socket_to_uid(@user.id, :aspect_ids => @aspect.id)
|
||||
channel = Magent::GenericChannel.new('websocket')
|
||||
channel.message_count.should == 1
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue