From 1a58777daa0ab9394f38737a806a7a185ebceeb0 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 29 May 2014 00:55:34 -0700 Subject: this is an important bit - only mark dead hubs on directory servers. They shouldn't matter anywhere else. --- include/Contact.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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), -- cgit v1.2.3