aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-22 10:12:57 +0000
committerMario <mario@mariovavti.com>2021-03-22 13:42:01 +0100
commit2e47ef38a9b18a49d6e13256309519deed3683b4 (patch)
tree0e0635fca00d1905b06a5f6542ab7b305440578f /Zotlabs
parent81b4d919e5e040a79cdab1a85a23d0166ed53687 (diff)
downloadvolse-hubzilla-2e47ef38a9b18a49d6e13256309519deed3683b4.tar.gz
volse-hubzilla-2e47ef38a9b18a49d6e13256309519deed3683b4.tar.bz2
volse-hubzilla-2e47ef38a9b18a49d6e13256309519deed3683b4.zip
libsync fix from zap: look for hubloc_updated instead of hubloc_connected which would always be true
(cherry picked from commit ccefb99cbee3c8585ede2c6e67289c5d54b38dca)
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Libsync.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php
index e16b68cf8..7e97e4c70 100644
--- a/Zotlabs/Lib/Libsync.php
+++ b/Zotlabs/Lib/Libsync.php
@@ -781,7 +781,7 @@ class Libsync {
$t = datetime_convert('UTC', 'UTC', 'now - 15 minutes');
if (array_key_exists('site', $arr) && $location['url'] == $arr['site']['url']) {
- q("update hubloc set hubloc_connected = '%s', hubloc_updated = '%s' where hubloc_id = %d and hubloc_connected < '%s'",
+ q("update hubloc set hubloc_connected = '%s', hubloc_updated = '%s' where hubloc_id = %d and hubloc_updated < '%s'",
dbesc(datetime_convert()),
dbesc(datetime_convert()),
intval($r[0]['hubloc_id']),