summaryrefslogtreecommitdiff
path: root/app/views/webfinger/search.xml.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/webfinger/search.xml.erb')
-rw-r--r--app/views/webfinger/search.xml.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/webfinger/search.xml.erb b/app/views/webfinger/search.xml.erb
new file mode 100644
index 0000000..7328552
--- /dev/null
+++ b/app/views/webfinger/search.xml.erb
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
+ <Subject><%= @presenter.subject %></Subject>
+ <%- @presenter.links.each do |rel, link| %>
+ <Link rel=<%=rel%> type=<%=link[:type]%> href="<%= link[:key] %>"/>
+ <% end %>
+</XRD>