Skip to content
Browse files

Adds salmon links to xrd.

These endpoints are completed in the routes, but without them in the
xrd, no ostatus client would know how to reach an node user.
That would make me sad. All three links are required, but normally they
all point to the same route. This is true for us and, so
don't be alarmed by it. I'm not sure why anybody would want to
distinguish them by route since the envelope exposes this, and this
distinction does not make it a separate resource at all. :(
  • Loading branch information...
1 parent 45b9d7c commit 89fd79e8a465b12695d2da93bc8f5443a8da6368 @wilkie wilkie committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/views/xml/webfinger/xrd.haml
3 app/views/xml/webfinger/xrd.haml
@@ -8,4 +8,7 @@
-#%Link{:rel => "", :type => "text/html", :href => "#{@base_url}users/#{@user.username}"}
%Link{:rel => "", :href => "#{@base_url}feeds/#{}.atom"}
%Link{:rel => "", :href => "#{@base_url}subscriptions?url={uri}&_method=post"}
+ %Link{:rel => "salmon", :href => "#{@base_url}feeds/#{}/salmon"}
+ %Link{:rel => "", :href => "#{@base_url}feeds/#{}/salmon"}
+ %Link{:rel => "", :href => "#{@base_url}feeds/#{}/salmon"}
%Link{:rel => "magic-public-key", :href => "data:application/magic-public-key,#{}"}

0 comments on commit 89fd79e

Please sign in to comment.
Something went wrong with that request. Please try again.