aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-29 00:55:34 -0700
committerfriendica <info@friendica.com>2014-05-29 00:55:34 -0700
commit1a58777daa0ab9394f38737a806a7a185ebceeb0 (patch)
tree40d02de8436aa5281ed78aa07e6258cb4a0f7389
parent2a6d7b6a079a565afc0200fe160cb2402ed7c0a3 (diff)
downloadvolse-hubzilla-1a58777daa0ab9394f38737a806a7a185ebceeb0.tar.gz
volse-hubzilla-1a58777daa0ab9394f38737a806a7a185ebceeb0.tar.bz2
volse-hubzilla-1a58777daa0ab9394f38737a806a7a185ebceeb0.zip
this is an important bit - only mark dead hubs on directory servers. They shouldn't matter anywhere else.
-rw-r--r--include/Contact.php4
-rw-r--r--version.inc2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 6e12652a5..b4583c358 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -298,6 +298,10 @@ function channel_remove($channel_id, $local = true) {
function mark_orphan_hubsxchans() {
+ $dirmode = intval(get_config('system','directory_mode'));
+ if($dirmode == DIRECTORY_MODE_NORMAL)
+ return;
+
$r = q("update hubloc set hubloc_status = (hubloc_status | %d) where not (hubloc_status & %d)
and hubloc_connected < utc_timestamp() - interval 30 day",
intval(HUBLOC_OFFLINE),
diff --git a/version.inc b/version.inc
index f0552de10..a14b886b0 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-05-28.689
+2014-05-29.690