aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-03 20:55:38 -0700
committerredmatrix <git@macgirvin.com>2016-04-03 20:55:38 -0700
commit222ace377009d196e3ea0292b1ac332ef8e88d23 (patch)
tree12dfbbc9ffe5698c5c6e9b31a361339c3d7d159a /include/network.php
parent2e7d2a63c33bc3047b9d743d965fbe3f51c56c3b (diff)
downloadvolse-hubzilla-222ace377009d196e3ea0292b1ac332ef8e88d23.tar.gz
volse-hubzilla-222ace377009d196e3ea0292b1ac332ef8e88d23.tar.bz2
volse-hubzilla-222ace377009d196e3ea0292b1ac332ef8e88d23.zip
For GNU-social discovery, use the URI in the feed (author.uri) rather than try to pick out which of the aliases in webfinger are likely to be the right one. If we get it wrong, our communications with them will be discarded and there is no rhyme or reason to the logic about which representation is likely to be the one true account URI. It appears to vary with the clean_url setting of the site and this info isn't available to us except with a sequence of expensive probes and testing various ways of re-writing URLs to see if we get a response.
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php
index 7c7da8727..c9ae8b283 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1265,6 +1265,12 @@ function discover_by_webbie($webbie) {
if($feed_meta['author']['author_photo'])
$avatar = $feed_meta['author']['author_photo'];
}
+
+ // for GNU-social over-ride any url aliases we may have picked up in webfinger
+ // The author.uri element in the feed is likely to be more accurate
+
+ if($gnusoc && $feed_meta['author']['author_uri'])
+ $location = $feed_meta['author']['author_uri'];
}
}
else {