diff --git a/include/socgraph.php b/include/socgraph.php index 0acd2793aa..b2b84808b1 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -1535,6 +1535,7 @@ function update_gcontact($contact) { unset($fields["url"]); unset($fields["updated"]); + unset($fields["hide"]); // Bugfix: We had an error in the storing of keywords which lead to the "0" // This value is still transmitted via poco. @@ -1549,6 +1550,11 @@ function update_gcontact($contact) { if (!isset($contact[$field]) OR ($contact[$field] == "")) $contact[$field] = $r[0][$field]; + if (!isset($contact["hide"])) + $contact["hide"] = $r[0]["hide"]; + + $fields["hide"] = $r[0]["hide"]; + if ($contact["network"] == NETWORK_STATUSNET) $contact["network"] = NETWORK_OSTATUS; diff --git a/mod/settings.php b/mod/settings.php index c7659212bf..1a7905ef64 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -1,6 +1,7 @@ $username, "generation" => 1, "hide" => ($hidewall OR !$net_publish), + "network" => NETWORK_DFRN, "url" => $r[0]["url"], "updated" => datetime_convert()); + + update_gcontact($gcontact); + } require_once('include/profile_update.php'); profile_change();