aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Meer <michael@meer.name>2015-09-11 14:06:37 +0200
committerMichael Meer <michael@meer.name>2015-09-11 14:06:37 +0200
commit755edd21100a131bcda586aadbe7b4b83ebe6375 (patch)
tree2d36de870696f1d68a6e2f397a9bae6b01b8bc4c
parentf51124397f53e61b7cf8e2bcc64c0eba0b672190 (diff)
downloadvolse-hubzilla-755edd21100a131bcda586aadbe7b4b83ebe6375.tar.gz
volse-hubzilla-755edd21100a131bcda586aadbe7b4b83ebe6375.tar.bz2
volse-hubzilla-755edd21100a131bcda586aadbe7b4b83ebe6375.zip
ensure that living sites are marked as alive
-rw-r--r--include/zot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php
index 0e00f39b4..9bd6862f0 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -951,7 +951,7 @@ function zot_process_response($hub, $arr, $outq) {
// update the timestamp for this site
- q("update site set site_update = '%s' where site_url = '%s'",
+ q("update site set site_dead = 0, site_update = '%s' where site_url = '%s'",
dbesc(datetime_convert()),
dbesc(dirname($hub))
);
@@ -2663,7 +2663,7 @@ function import_site($arr, $pubkey) {
// logger('import_site: input: ' . print_r($arr,true));
// logger('import_site: stored: ' . print_r($siterecord,true));
- $r = q("update site set site_location = '%s', site_flags = %d, site_access = %d, site_directory = '%s', site_register = %d, site_update = '%s', site_sellpage = '%s', site_realm = '%s'
+ $r = q("update site set site_dead = 0, site_location = '%s', site_flags = %d, site_access = %d, site_directory = '%s', site_register = %d, site_update = '%s', site_sellpage = '%s', site_realm = '%s'
where site_url = '%s'",
dbesc($site_location),
intval($site_directory),
@@ -2681,7 +2681,7 @@ function import_site($arr, $pubkey) {
}
else {
// update the timestamp to indicate we communicated with this site
- q("update site set site_update = '%s' where site_url = '%s'",
+ q("update site set site_dead = 0, site_update = '%s' where site_url = '%s'",
dbesc(datetime_convert()),
dbesc($url)
);