diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-04-12 18:24:44 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-04-12 18:24:44 +0200 |
commit | bdf1b23198ed958942f30c7103995231afd2f5da (patch) | |
tree | dc88bd01ebab4e848468e526f98d229b354adb9a /Zotlabs/Module | |
parent | 6f1c261f6bc740d3a8a0c3b8540b7a5712c20cfd (diff) | |
download | volse-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')
-rw-r--r-- | Zotlabs/Module/Dirsearch.php | 3 |
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) ); |