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 17:58:46 +0000
commit33463152e844f98b933401c394cc0e111893a077 (patch)
tree6c1af14e98dfe226e05b8b97abaa0de125c04596 /Zotlabs/Daemon/Onedirsync.php
parent50c14d353b30d0dcd7c761884d797dc0fe90f777 (diff)
downloadvolse-hubzilla-33463152e844f98b933401c394cc0e111893a077.tar.gz
volse-hubzilla-33463152e844f98b933401c394cc0e111893a077.tar.bz2
volse-hubzilla-33463152e844f98b933401c394cc0e111893a077.zip
fix issue where a deleted channel will return 404 before returning zotinfo
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 9ab8ebb54..2681b8b2b 100644
--- a/Zotlabs/Daemon/Onedirsync.php
+++ b/Zotlabs/Daemon/Onedirsync.php
@@ -25,6 +25,7 @@ class Onedirsync {
if (!$r)
return;
+
if (($r[0]['ud_flags'] & UPDATE_FLAGS_UPDATED) || (!$r[0]['ud_addr']))
return;
@@ -55,13 +56,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;
}