From 4549bc89eca7418dd86424d1791f7a86a5966ce9 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 5 Oct 2022 08:41:31 +0000 Subject: when updating hubloc_connected also update hubloc_updated --- Zotlabs/Lib/Libzot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Lib/Libzot.php') diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 3d14248de..6f7d74606 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -3106,7 +3106,8 @@ class Libzot { $t = datetime_convert('UTC', 'UTC', 'now - 15 minutes'); - $r = q("update hubloc set hubloc_connected = '%s' where hubloc_id = %d and hubloc_site_id = '%s' and hubloc_connected < '%s' ", + q("update hubloc set hubloc_connected = '%s', hubloc_updated = '%s' where hubloc_id = %d and hubloc_site_id = '%s' and hubloc_connected < '%s' ", + dbesc(datetime_convert()), dbesc(datetime_convert()), intval($hub['hubloc_id']), dbesc($site_id), -- cgit v1.2.3