WebFinger: Add back in subscribe_address.
It's used for remote following.
This commit is contained in:
parent
8bed6ea922
commit
f897da2115
1 changed files with 6 additions and 0 deletions
|
@ -88,6 +88,11 @@ def represent_user(user, "XML") do
|
|||
|
||||
defp webfinger_from_xml(doc) do
|
||||
with subject <- XML.string_from_xpath("//Subject", doc),
|
||||
subscribe_address <-
|
||||
XML.string_from_xpath(
|
||||
~s{//Link[@rel="http://ostatus.org/schema/1.0/subscribe"]/@template},
|
||||
doc
|
||||
),
|
||||
ap_id <-
|
||||
XML.string_from_xpath(
|
||||
~s{//Link[@rel="self" and @type="application/activity+json"]/@href},
|
||||
|
@ -95,6 +100,7 @@ defp webfinger_from_xml(doc) do
|
|||
) do
|
||||
data = %{
|
||||
"subject" => subject,
|
||||
"subscribe_address" => subscribe_address,
|
||||
"ap_id" => ap_id
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue