Add link to AP address in webfinger.
authorRoger Braun <roger@rogerbraun.net>
Sat, 9 Dec 2017 14:34:43 +0000 (15:34 +0100)
committerRoger Braun <roger@rogerbraun.net>
Sat, 9 Dec 2017 14:34:43 +0000 (15:34 +0100)
lib/pleroma/web/web_finger/web_finger.ex

index 026d2f98bd908e455677070f8eac59f92513ccca..11b36d6acafe5768e02e3efbce6e89572fac2127 100644 (file)
@@ -44,7 +44,8 @@ defmodule Pleroma.Web.WebFinger do
         {:Link, %{rel: "http://schemas.google.com/g/2010#updates-from", type: "application/atom+xml", href: OStatus.feed_path(user)}},
         {:Link, %{rel: "http://webfinger.net/rel/profile-page", type: "text/html", href: user.ap_id}},
         {:Link, %{rel: "salmon", href: OStatus.salmon_path(user)}},
-        {:Link, %{rel: "magic-public-key", href: "data:application/magic-public-key,#{magic_key}"}}
+        {:Link, %{rel: "magic-public-key", href: "data:application/magic-public-key,#{magic_key}"}},
+        {:Link, %{rel: "self", type: "application/activity+json", href: user.ap_id}}
       ]
     }
     |> XmlBuilder.to_doc