summaryrefslogtreecommitdiff
path: root/users/lib
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-01-24 11:38:11 -0800
committerjessib <jessib@leap.se>2013-01-24 11:38:11 -0800
commit9d053b6c9b61c68bf11f95bcb37631a518f1fba4 (patch)
treeee8bb58c003f2f61c391b0ac2ca26fee4f868ca4 /users/lib
parentc7de46aba95085baaba3775671a47182d781221a (diff)
Removing aliases from webfinger as the link wouldn't work anyway, and don't want to leak ID information.
Diffstat (limited to 'users/lib')
-rw-r--r--users/lib/webfinger/user_presenter.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/users/lib/webfinger/user_presenter.rb b/users/lib/webfinger/user_presenter.rb
index 41153a8..329f477 100644
--- a/users/lib/webfinger/user_presenter.rb
+++ b/users/lib/webfinger/user_presenter.rb
@@ -10,7 +10,6 @@ class Webfinger::UserPresenter
def to_json(options = {})
{
subject: subject,
- aliases: aliases,
links: links
}.to_json(options)
end
@@ -19,10 +18,6 @@ class Webfinger::UserPresenter
"acct:#{@user.email_address}"
end
- def aliases
- [ user_url(@user, :host => @request.host) ]
- end
-
def links
links = {}
links[:public_key] = { type: 'PGP', href: key } if key