diff options
author | Azul <azul@leap.se> | 2013-01-23 09:39:50 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-01-23 09:39:50 +0100 |
commit | b530279a144ad5fb35070952898c8e6ae3ba68ea (patch) | |
tree | 221077738d4f6b6b646b535a0e5c559dd15f394b /users/app/views/webfinger/search.xml.erb | |
parent | def5a00415ebced58bb0f7c1254f6cbedb27a23f (diff) |
not inluding link to key if there is none
Diffstat (limited to 'users/app/views/webfinger/search.xml.erb')
-rw-r--r-- | users/app/views/webfinger/search.xml.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/users/app/views/webfinger/search.xml.erb b/users/app/views/webfinger/search.xml.erb index 0bcb7e5..270383e 100644 --- a/users/app/views/webfinger/search.xml.erb +++ b/users/app/views/webfinger/search.xml.erb @@ -2,5 +2,7 @@ <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 %>"/> + <%- if @subject.key.present? %> + <Link rel="public-key" type = 'PGP' href="<%= @subject.key %>"/> + <% end %> </XRD> |