aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Onedirsync.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-02 17:58:46 +0000
committerMario <mario@mariovavti.com>2021-06-02 18:13:48 +0000
commitba22d3e9b6ef7042d7129c7715c81c668fcf79b3 (patch)
tree9ae960acdbf42908217d16f78268292c994dc694 /Zotlabs/Daemon/Onedirsync.php
parent657af3024e2db87153d71692e7bec77af41d3dcc (diff)
downloadvolse-hubzilla-ba22d3e9b6ef7042d7129c7715c81c668fcf79b3.tar.gz
volse-hubzilla-ba22d3e9b6ef7042d7129c7715c81c668fcf79b3.tar.bz2
volse-hubzilla-ba22d3e9b6ef7042d7129c7715c81c668fcf79b3.zip
fix issue where a deleted channel will return 404 before returning zotinfo
(cherry picked from commit 33463152e844f98b933401c394cc0e111893a077)
Diffstat (limited to 'Zotlabs/Daemon/Onedirsync.php')
-rw-r--r--Zotlabs/Daemon/Onedirsync.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Daemon/Onedirsync.php b/Zotlabs/Daemon/Onedirsync.php
index f29fbe5b8..47904ea21 100644
--- a/Zotlabs/Daemon/Onedirsync.php
+++ b/Zotlabs/Daemon/Onedirsync.php
@@ -29,6 +29,7 @@ class Onedirsync {
if (!$r)
return;
+
if (($r[0]['ud_flags'] & UPDATE_FLAGS_UPDATED) || (!$r[0]['ud_addr']))
return;
@@ -59,13 +60,12 @@ class Onedirsync {
$h = Libzot::zot_record_preferred($h);
- if (($h) && ($h['hubloc_status'] & HUBLOC_OFFLINE)) {
+ if (($h) && (($h['hubloc_status'] & HUBLOC_OFFLINE) || $h['hubloc_deleted'] || $h['hubloc_error']) ) {
q("update updates set ud_flags = ( ud_flags | %d ) where ud_addr = '%s' and ( ud_flags & %d ) = 0 ",
intval(UPDATE_FLAGS_UPDATED),
dbesc($r[0]['ud_addr']),
intval(UPDATE_FLAGS_UPDATED)
);
-
return;
}