mirror of
https://github.com/friendica/friendica
synced 2025-05-11 23:04:12 +02:00
Code transitioning from PortableContacts.php to GServer.php
This commit is contained in:
parent
2009080327
commit
d9a74bd5dd
6 changed files with 135 additions and 954 deletions
|
@ -231,7 +231,7 @@ class GContact
|
|||
}
|
||||
|
||||
// The server URL doesn't seem to be valid, so we don't store it.
|
||||
if (!PortableContact::checkServer($gcontact['server_url'], $gcontact['network'])) {
|
||||
if (!GServer::check($gcontact['server_url'])) {
|
||||
$gcontact['server_url'] = "";
|
||||
}
|
||||
|
||||
|
@ -541,7 +541,7 @@ class GContact
|
|||
$j = json_decode($x);
|
||||
if (!empty($j->entries)) {
|
||||
foreach ($j->entries as $entry) {
|
||||
PortableContact::checkServer($entry->url);
|
||||
GServer::check($entry->url);
|
||||
|
||||
$url = $entry->url . '/poco';
|
||||
if (!in_array($url, $done)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue