aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Dirsearch.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-04-12 18:24:44 +0200
committerMario Vavti <mario@mariovavti.com>2023-04-12 18:24:44 +0200
commitbdf1b23198ed958942f30c7103995231afd2f5da (patch)
treedc88bd01ebab4e848468e526f98d229b354adb9a /Zotlabs/Module/Dirsearch.php
parent6f1c261f6bc740d3a8a0c3b8540b7a5712c20cfd (diff)
downloadvolse-hubzilla-bdf1b23198ed958942f30c7103995231afd2f5da.tar.gz
volse-hubzilla-bdf1b23198ed958942f30c7103995231afd2f5da.tar.bz2
volse-hubzilla-bdf1b23198ed958942f30c7103995231afd2f5da.zip
reset ud_last if we had contact and some cleanup
Diffstat (limited to 'Zotlabs/Module/Dirsearch.php')
-rw-r--r--Zotlabs/Module/Dirsearch.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Dirsearch.php b/Zotlabs/Module/Dirsearch.php
index 837783e8b..45cb48c11 100644
--- a/Zotlabs/Module/Dirsearch.php
+++ b/Zotlabs/Module/Dirsearch.php
@@ -216,7 +216,8 @@ class Dirsearch extends Controller {
if($sync) {
$spkt = array('transactions' => array());
- $r = q("SELECT * FROM updates WHERE ud_flags = 0 AND ud_date >= '%s' ORDER BY ud_date DESC",
+ $r = q("SELECT * FROM updates WHERE ud_flags = 0 AND ud_last = '%s' AND ud_date >= '%s' ORDER BY ud_date DESC",
+ dbesc(NULL_DATE),
dbesc($sync)
);