mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
server_url was forgotten
This commit is contained in:
parent
9e5bec1bc8
commit
26ec56dfa5
2 changed files with 6 additions and 29 deletions
|
@ -236,6 +236,9 @@ function discover_directory($search) {
|
|||
if ($jj->tags != "") {
|
||||
$data["keywords"] = $jj->tags;
|
||||
}
|
||||
|
||||
$data["server_url"] = $data["baseurl"];
|
||||
|
||||
update_gcontact($data);
|
||||
} else {
|
||||
logger("Profile ".$jj->url." is not responding or no Friendica contact - but network ".$data["network"], LOGGER_DEBUG);
|
||||
|
|
|
@ -290,16 +290,6 @@ function sanitized_gcontact(&$gcontact) {
|
|||
|
||||
$gcontact["server_url"] = $data["baseurl"];
|
||||
|
||||
unset($data["guid"]);
|
||||
unset($data["batch"]);
|
||||
unset($data["poll"]);
|
||||
unset($data["request"]);
|
||||
unset($data["confirm"]);
|
||||
unset($data["poco"]);
|
||||
unset($data["priority"]);
|
||||
unset($data["pubkey"]);
|
||||
unset($data["baseurl"]);
|
||||
|
||||
$gcontact = array_merge($gcontact, $data);
|
||||
|
||||
if ($alternate AND ($gcontact['network'] == NETWORK_OSTATUS)) {
|
||||
|
@ -608,15 +598,7 @@ function poco_last_updated($profile, $force = false) {
|
|||
|
||||
$gcontact = array_merge($gcontacts[0], $data);
|
||||
|
||||
unset($gcontact["guid"]);
|
||||
unset($gcontact["batch"]);
|
||||
unset($gcontact["poll"]);
|
||||
unset($gcontact["request"]);
|
||||
unset($gcontact["confirm"]);
|
||||
unset($gcontact["poco"]);
|
||||
unset($gcontact["priority"]);
|
||||
unset($gcontact["pubkey"]);
|
||||
unset($gcontact["baseurl"]);
|
||||
$gcontact["server_url"] = $data["baseurl"];
|
||||
|
||||
if (sanitized_gcontact($gcontact)) {
|
||||
update_gcontact($gcontact);
|
||||
|
@ -642,16 +624,6 @@ function poco_last_updated($profile, $force = false) {
|
|||
|
||||
$contact["server_url"] = $data["baseurl"];
|
||||
|
||||
unset($contact["guid"]);
|
||||
unset($contact["batch"]);
|
||||
unset($contact["poll"]);
|
||||
unset($contact["request"]);
|
||||
unset($contact["confirm"]);
|
||||
unset($contact["poco"]);
|
||||
unset($contact["priority"]);
|
||||
unset($contact["pubkey"]);
|
||||
unset($contact["baseurl"]);
|
||||
|
||||
update_gcontact($contact);
|
||||
|
||||
$feedret = z_fetch_url($data["poll"]);
|
||||
|
@ -2208,6 +2180,8 @@ function update_gcontact_from_probe($url) {
|
|||
return;
|
||||
}
|
||||
|
||||
$data["server_url"] = $data["baseurl"];
|
||||
|
||||
update_gcontact($data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue