This commit is contained in:
Michael 2020-04-28 08:00:38 +00:00
parent f75009c20c
commit e52e505a48
11 changed files with 51 additions and 73 deletions

View file

@ -747,7 +747,7 @@ class GServer
return false;
}
$xrd = XML::parseString($curlResult->getBody(), false);
$xrd = XML::parseString($curlResult->getBody());
if (!is_object($xrd)) {
return false;
}
@ -796,13 +796,13 @@ class GServer
DBA::close($gcontacts);
$apcontacts = DBA::select('apcontact', ['url'], ['baseurl' => [$url, $serverdata['nurl']]]);
while ($gcontact = DBA::fetch($gcontacts)) {
while ($apcontact = DBA::fetch($apcontacts)) {
$contacts[Strings::normaliseLink($apcontact['url'])] = $apcontact['url'];
}
DBA::close($apcontacts);
$pcontacts = DBA::select('contact', ['url', 'nurl'], ['uid' => 0, 'baseurl' => [$url, $serverdata['nurl']]]);
while ($gcontact = DBA::fetch($gcontacts)) {
while ($pcontact = DBA::fetch($pcontacts)) {
$contacts[$pcontact['nurl']] = $pcontact['url'];
}
DBA::close($pcontacts);

View file

@ -1249,8 +1249,8 @@ class Item
return;
}
$xo = XML::parseString($item["object"], false);
$xt = XML::parseString($item["target"], false);
$xo = XML::parseString($item["object"]);
$xt = XML::parseString($item["target"]);
if ($xt->type != Activity\ObjectType::NOTE) {
return;