Issue 6347: Removing the old way to fetch Diaspora posts to avoid Hubzilla problems
This commit is contained in:
parent
00cc3e779b
commit
9a4fc0f8bd
|
@ -1326,15 +1326,8 @@ class Diaspora
|
||||||
$x = false;
|
$x = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This will work for older Diaspora and Friendica servers
|
|
||||||
if (!$x) {
|
if (!$x) {
|
||||||
$source_url = $server."/p/".urlencode($guid).".xml";
|
return false;
|
||||||
Logger::log("Fetch post from ".$source_url, Logger::DEBUG);
|
|
||||||
|
|
||||||
$x = Network::fetchUrl($source_url);
|
|
||||||
if (!$x) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$source_xml = XML::parseString($x);
|
$source_xml = XML::parseString($x);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user