diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-05-21 12:38:12 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-05-21 12:41:31 +0000 |
commit | 75cfd9d34dc4be83a1ad4329f93d5121a7968b09 (patch) | |
tree | cbd29184214f675d6bb868c81ceb31146752d349 /lib | |
parent | d269c69a0b315f4767efbed3da781b04e9614c5d (diff) | |
download | pleroma-75cfd9d34dc4be83a1ad4329f93d5121a7968b09.tar.gz |
webfinger: fix finding the XRD uri for statusnet instances
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/web_finger/web_finger.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/web_finger/web_finger.ex b/lib/pleroma/web/web_finger/web_finger.ex index 6e5fc1401..9c6f1cb68 100644 --- a/lib/pleroma/web/web_finger/web_finger.ex +++ b/lib/pleroma/web/web_finger/web_finger.ex @@ -214,7 +214,7 @@ defmodule Pleroma.Web.WebFinger do end def get_template_from_xml(body) do - xpath = "//Link[@rel='lrdd' and @type='application/xrd+xml']/@template" + xpath = "//Link[@rel='lrdd']/@template" with doc when doc != :error <- XML.parse_document(body), template when template != nil <- XML.string_from_xpath(xpath, doc) do |