Quickfix for Hubzilla systems with enabled OStatus addon

This commit is contained in:
Michael Vogel 2016-04-22 23:58:06 +02:00
parent 19a24d6ada
commit e76475d81f

View file

@ -846,6 +846,18 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
if (($result2['network'] != "") AND ($result2['network'] != NETWORK_FEED)) if (($result2['network'] != "") AND ($result2['network'] != NETWORK_FEED))
$result = $result2; $result = $result2;
} }
// Quickfix for Hubzilla systems with enabled OStatus plugin
if (($result['network'] == NETWORK_DIASPORA) AND ($result["batch"] == "")) {
$result2 = probe_url($url, PROBE_DIASPORA, ++$level);
if ($result2['network'] == NETWORK_DIASPORA) {
$addr = $result["addr"];
$result = $result2;
if (($result["addr"] == "") AND ($addr != ""))
$result["addr"] = $addr;
}
}
} }
// Only store into the cache if the value seems to be valid // Only store into the cache if the value seems to be valid