Commit bc689740 authored by eal's avatar eal
Browse files

Add remote follow path to webfinger.

parent ac7580df
......@@ -22,6 +22,10 @@ def salmon_path(user) do
def remote_follow_path do
def handle_incoming(xml_string) do
with doc when doc != :error <- parse_document(xml_string) do
entries = :xmerl_xpath.string('//entry', doc)
......@@ -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: "", template: OStatus.remote_follow_path()}}
|> 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