aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-05 08:41:31 +0000
committerMario <mario@mariovavti.com>2022-10-05 10:49:19 +0200
commit6ab65519a0fc3e55ad5f32ce1641190ef609a4e2 (patch)
tree9b74af601808713787fc277dd30ddd021565e862 /Zotlabs
parent273433586984abeeb5f7c10a4377bba1ea21b3d5 (diff)
downloadvolse-hubzilla-6ab65519a0fc3e55ad5f32ce1641190ef609a4e2.tar.gz
volse-hubzilla-6ab65519a0fc3e55ad5f32ce1641190ef609a4e2.tar.bz2
volse-hubzilla-6ab65519a0fc3e55ad5f32ce1641190ef609a4e2.zip
when updating hubloc_connected also update hubloc_updated
(cherry picked from commit 4549bc89eca7418dd86424d1791f7a86a5966ce9)
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Libzot.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 8eb5ce647..ba3c642cf 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -3101,7 +3101,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),