mirror of
https://github.com/friendica/friendica
synced 2025-05-06 11:04:12 +02:00
Merge
This commit is contained in:
parent
f75009c20c
commit
e52e505a48
11 changed files with 51 additions and 73 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue