From d79290df75b214f50f0d9ec586a7b855e3a86106 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 26 Apr 2023 17:58:35 +0200 Subject: dirsync update column --- Zotlabs/Module/Dirsearch.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Dirsearch.php b/Zotlabs/Module/Dirsearch.php index 62bf99b67..22b030edf 100644 --- a/Zotlabs/Module/Dirsearch.php +++ b/Zotlabs/Module/Dirsearch.php @@ -218,7 +218,7 @@ class Dirsearch extends Controller { if($sync) { $spkt = array('transactions' => array()); - $r = q("SELECT * FROM updates WHERE ud_flags = 0 AND ud_last = '%s' AND ud_date >= '%s' ORDER BY ud_date DESC", + $r = q("SELECT * FROM updates WHERE ud_update = 0 AND ud_last = '%s' AND ud_date >= '%s' ORDER BY ud_date DESC", dbesc(NULL_DATE), dbesc($sync) ); @@ -230,7 +230,8 @@ class Dirsearch extends Controller { 'address' => $rr['ud_addr'], 'host' => $rr['ud_guid'], 'transaction_id' => $rr['ud_guid'], // deprecated 2023-04-12 - 'timestamp' => $rr['ud_date'] + 'timestamp' => $rr['ud_date'], + 'flags' => $rr['ud_flags'] ]; } } -- cgit v1.2.3