diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-04-26 23:01:56 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-04-26 23:01:56 +0200 |
commit | bdb25315b6f01f1963b21f6e0c0bd5ec2959c62e (patch) | |
tree | e530ef64610ff7f978c36c4fe7a636c8f478c456 /Zotlabs/Daemon/Poller.php | |
parent | 60f0739c3e8158bdcb373c3607ef2e8e8fcb4e08 (diff) | |
download | volse-hubzilla-bdb25315b6f01f1963b21f6e0c0bd5ec2959c62e.tar.gz volse-hubzilla-bdb25315b6f01f1963b21f6e0c0bd5ec2959c62e.tar.bz2 volse-hubzilla-bdb25315b6f01f1963b21f6e0c0bd5ec2959c62e.zip |
initial commit for directory flags federation
Diffstat (limited to 'Zotlabs/Daemon/Poller.php')
-rw-r--r-- | Zotlabs/Daemon/Poller.php | 3 |
1 files changed, 2 insertions, 1 deletions
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') |