diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-10-26 16:06:15 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-10-26 14:08:33 +0000 |
commit | 82e704ec5b107823c09f1387e9091adee53a4c2d (patch) | |
tree | 94a5ae059834bee4e5a7d0ea62b2757b33892946 /Zotlabs/Lib/Libzotdir.php | |
parent | 670228ff635a2b0f341c47ff44b0246bd268d91a (diff) | |
download | volse-hubzilla-82e704ec5b107823c09f1387e9091adee53a4c2d.tar.gz volse-hubzilla-82e704ec5b107823c09f1387e9091adee53a4c2d.tar.bz2 volse-hubzilla-82e704ec5b107823c09f1387e9091adee53a4c2d.zip |
remove the directory updates entry if the channel was removed
(cherry picked from commit 67aaa979049ea2666da1fb313b2b095e27422128)
Diffstat (limited to 'Zotlabs/Lib/Libzotdir.php')
-rw-r--r-- | Zotlabs/Lib/Libzotdir.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Zotlabs/Lib/Libzotdir.php b/Zotlabs/Lib/Libzotdir.php index 58138850c..ca3902a9e 100644 --- a/Zotlabs/Lib/Libzotdir.php +++ b/Zotlabs/Lib/Libzotdir.php @@ -362,12 +362,9 @@ class Libzotdir { self::delete_by_hash($ud['ud_hash']); } - // backwards compatibility: Libzot::import_xchan(), where self::update() is called, - // will fail with versions < 8.4 if the channel has been locally deleted. - // In this case we will update the updates record here without bumping the date - // since we could not verify if anything changed. - if (!$xc['success'] && !empty($zf['data']['deleted_locally'])) { - self::update($ud['ud_hash'], $ud['ud_addr'], false); + // if the channel was deleted - delete the entry in updates + if (!empty($zf['data']['deleted_locally'])) { + self::delete_by_hash($ud['ud_hash']); } // This is a workaround for a missing xchan_updated column |