about summary refs log tree commit diff
path: root/app/views/well_known
diff options
context:
space:
mode:
authorEvan Minto <evan.minto@gmail.com>2017-04-27 03:02:41 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-04-27 12:02:41 +0200
commite595ccb2946988f7f870d782e42b88f8fca10acd (patch)
tree154a912a6a87db098d54c3a45d940f0aba4232ee /app/views/well_known
parent43a29a9d0ff97bf99add56fc5b4acb39971d0fe5 (diff)
Add ActivityPub Actor id to WebFinger JSON. (#2522)
Diffstat (limited to 'app/views/well_known')
-rw-r--r--app/views/well_known/webfinger/show.json.rabl1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/well_known/webfinger/show.json.rabl b/app/views/well_known/webfinger/show.json.rabl
index 67874da78..123d1d11a 100644
--- a/app/views/well_known/webfinger/show.json.rabl
+++ b/app/views/well_known/webfinger/show.json.rabl
@@ -10,6 +10,7 @@ node(:links) do
   [
     { rel: 'http://webfinger.net/rel/profile-page', type: 'text/html', href: TagManager.instance.url_for(@account) },
     { rel: 'http://schemas.google.com/g/2010#updates-from', type: 'application/atom+xml', href: account_url(@account, format: 'atom') },
+    { rel: 'self', type: 'application/activity+json', href: TagManager.instance.url_for(@account) },
     { rel: 'salmon', href: api_salmon_url(@account.id) },
     { rel: 'magic-public-key', href: "data:application/magic-public-key,#{@magic_key}" },
     { rel: 'http://ostatus.org/schema/1.0/subscribe', template: "#{authorize_follow_url}?acct={uri}" },