Commit 25118aee authored by lain's avatar lain
Browse files

Add link to AP address in webfinger.

parent 30e9b22f
......@@ -44,7 +44,8 @@ def represent_user(user) do
{:Link, %{rel: "", type: "application/atom+xml", href: OStatus.feed_path(user)}},
{:Link, %{rel: "", 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment