this is an important bit - only mark dead hubs on directory servers. They shouldn't matter anywhere else.

This commit is contained in:
friendica 2014-05-29 00:55:34 -07:00
parent 2a6d7b6a07
commit 1a58777daa
2 changed files with 5 additions and 1 deletions

View File

@ -298,6 +298,10 @@ function channel_remove($channel_id, $local = true) {
function mark_orphan_hubsxchans() { 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) $r = q("update hubloc set hubloc_status = (hubloc_status | %d) where not (hubloc_status & %d)
and hubloc_connected < utc_timestamp() - interval 30 day", and hubloc_connected < utc_timestamp() - interval 30 day",
intval(HUBLOC_OFFLINE), intval(HUBLOC_OFFLINE),

View File

@ -1 +1 @@
2014-05-28.689 2014-05-29.690