summaryrefslogtreecommitdiff
path: root/users/app/views/webfinger/search.xml.erb
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/views/webfinger/search.xml.erb')
-rw-r--r--users/app/views/webfinger/search.xml.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/app/views/webfinger/search.xml.erb b/users/app/views/webfinger/search.xml.erb
new file mode 100644
index 0000000..0bcb7e5
--- /dev/null
+++ b/users/app/views/webfinger/search.xml.erb
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
+ <Subject>acct:<%= @subject.email_identifier %></Subject>
+ <Alias>"<%= user_url(@subject.subject) %>"</Alias>
+ <Link rel="public-key" type = 'PGP' href="<%= @subject.key %>"/>
+</XRD>