Add user profile page link.
authorRoger Braun <roger@rogerbraun.net>
Mon, 1 May 2017 18:02:32 +0000 (20:02 +0200)
committerRoger Braun <roger@rogerbraun.net>
Mon, 1 May 2017 18:02:32 +0000 (20:02 +0200)
lib/pleroma/web/web_finger/web_finger.ex

index ff10173efed1a83762b2208bad25baae4829cd0a..217b09dc5009c8d2075b5968b7c82271db689195 100644 (file)
@@ -40,6 +40,7 @@ defmodule Pleroma.Web.WebFinger do
         {:Subject, "acct:#{user.nickname}@#{Pleroma.Web.host}"},
         {:Alias, user.ap_id},
         {:Link, %{rel: "http://schemas.google.com/g/2010#updates-from", type: "application/atom+xml", href: OStatus.feed_path(user)}},
+        {:Link, %{rel: "ttp://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}"}}
       ]