aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-10-26 16:06:15 +0200
committerMario Vavti <mario@mariovavti.com>2023-10-26 16:06:15 +0200
commit67aaa979049ea2666da1fb313b2b095e27422128 (patch)
tree8bd0b967ebe3dd4bf53b0448c178f6ae19b72744
parent4f55248a6ccafb5dc3ed598c58b8201cf2e07fc9 (diff)
downloadvolse-hubzilla-67aaa979049ea2666da1fb313b2b095e27422128.tar.gz
volse-hubzilla-67aaa979049ea2666da1fb313b2b095e27422128.tar.bz2
volse-hubzilla-67aaa979049ea2666da1fb313b2b095e27422128.zip
remove the directory updates entry if the channel was removed
-rw-r--r--Zotlabs/Lib/Libzotdir.php9
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