diff options
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r-- | Zotlabs/Daemon/Onedirsync.php | 9 | ||||
-rw-r--r-- | Zotlabs/Daemon/Poller.php | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Zotlabs/Daemon/Onedirsync.php b/Zotlabs/Daemon/Onedirsync.php index 0d5ad22ea..b711b0c05 100644 --- a/Zotlabs/Daemon/Onedirsync.php +++ b/Zotlabs/Daemon/Onedirsync.php @@ -37,13 +37,14 @@ class Onedirsync { $h = Libzot::zot_record_preferred($h); if (($h) && (($h['hubloc_status'] & HUBLOC_OFFLINE) || $h['hubloc_deleted'] || $h['hubloc_error'])) { - q("update updates set ud_flags = 9 where ud_hash = '%s' and ud_flags != 9", - dbesc($r[0]['ud_hash']) - ); - // 2023-04-12: Flag the entry deleted but try to update anyway since the info is not always correct + // 2023-04-12: Try to update anyway since the info is not always correct // This might change after all directory servers run the new code. + // q("update updates set ud_flags = 9 where ud_hash = '%s' and ud_flags != 9", + // dbesc($r[0]['ud_hash']) + //); + // return; } diff --git a/Zotlabs/Daemon/Poller.php b/Zotlabs/Daemon/Poller.php index 77a428ec3..e5a1c6f39 100644 --- a/Zotlabs/Daemon/Poller.php +++ b/Zotlabs/Daemon/Poller.php @@ -170,7 +170,8 @@ class Poller { $dirmode = intval(get_config('system', 'directory_mode')); if ($dirmode == DIRECTORY_MODE_SECONDARY || $dirmode == DIRECTORY_MODE_PRIMARY) { - $r = q("SELECT * FROM updates WHERE ud_update = 1 AND (ud_last = '%s' OR ud_last > %s - INTERVAL %s)", + $r = q("SELECT * FROM updates WHERE ud_update != %d AND (ud_last = '%s' OR ud_last > %s - INTERVAL %s)", + intval(DIRECTORY_UPDATE_OK), dbesc(NULL_DATE), db_utcnow(), db_quoteinterval('7 DAY') |