aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-04-28 09:29:15 +0200
committerMario Vavti <mario@mariovavti.com>2023-04-28 09:29:15 +0200
commit29aa52df6a29042178cdc9e70fc51711e70a72ee (patch)
tree04c2696436fab3c55babc3dc94c58f92a3f07dec
parentc3267a27d36ad66ec2dd19a5613a3827010eebf2 (diff)
downloadvolse-hubzilla-29aa52df6a29042178cdc9e70fc51711e70a72ee.tar.gz
volse-hubzilla-29aa52df6a29042178cdc9e70fc51711e70a72ee.tar.bz2
volse-hubzilla-29aa52df6a29042178cdc9e70fc51711e70a72ee.zip
fix poller after refactor
-rw-r--r--Zotlabs/Daemon/Poller.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Daemon/Poller.php b/Zotlabs/Daemon/Poller.php
index e5a1c6f39..77a428ec3 100644
--- a/Zotlabs/Daemon/Poller.php
+++ b/Zotlabs/Daemon/Poller.php
@@ -170,8 +170,7 @@ 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 != %d AND (ud_last = '%s' OR ud_last > %s - INTERVAL %s)",
- intval(DIRECTORY_UPDATE_OK),
+ $r = q("SELECT * FROM updates WHERE ud_update = 1 AND (ud_last = '%s' OR ud_last > %s - INTERVAL %s)",
dbesc(NULL_DATE),
db_utcnow(),
db_quoteinterval('7 DAY')