Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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 rstat.us 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 status.net, 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...
commit 89fd79e8a465b12695d2da93bc8f5443a8da6368 1 parent 45b9d7c
@wilkie wilkie authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  app/views/xml/webfinger/xrd.haml
View
3  app/views/xml/webfinger/xrd.haml
@@ -8,4 +8,7 @@
-#%Link{:rel => "http://gmpg.org/xfn/11", :type => "text/html", :href => "#{@base_url}users/#{@user.username}"}
%Link{:rel => "http://schemas.google.com/g/2010#updates-from", :href => "#{@base_url}feeds/#{@user.feed.id}.atom"}
%Link{:rel => "http://ostatus.org/schema/1.0/subscribe", :href => "#{@base_url}subscriptions?url={uri}&_method=post"}
+ %Link{:rel => "salmon", :href => "#{@base_url}feeds/#{@user.feed.id}/salmon"}
+ %Link{:rel => "http://salmon-protocol.org/ns/salmon-replies", :href => "#{@base_url}feeds/#{@user.feed.id}/salmon"}
+ %Link{:rel => "http://salmon-protocol.org/ns/salmon-mention", :href => "#{@base_url}feeds/#{@user.feed.id}/salmon"}
%Link{:rel => "magic-public-key", :href => "data:application/magic-public-key,#{@user.author.public_key}"}
Please sign in to comment.
Something went wrong with that request. Please try again.