Permalink
Browse files

Fix webfinger alias tag

  • Loading branch information...
1 parent 30bd9c0 commit 96c3e27b131eb0e240521890e43d7e2e0a85c043 @atd atd committed Sep 24, 2012
View
2 ostatus/app/controllers/webfinger_controller.rb
@@ -7,7 +7,7 @@ def index
finger = Proudhon::Finger.new(
:subject => actor.webfinger_uri,
- :alias => polymorphic_url(actor.subject),
+ :alias => [polymorphic_url(actor.subject)],
:links => {
profile: polymorphic_url([actor.subject, :profile]),
updates_from: polymorphic_url([actor.subject, :activities], :format => :atom),
View
13 ostatus/spec/controllers/webfinger_controller_spec.rb
@@ -0,0 +1,13 @@
+require 'spec_helper'
+
+describe WebfingerController do
+ before do
+ @user = Factory(:user)
+ end
+
+ it "should render index" do
+ get :index, q: @user.webfinger_id
+
+ response.should be_success
+ end
+end

0 comments on commit 96c3e27

Please sign in to comment.