aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libsync.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-03 16:53:48 +0000
committerMario <mario@mariovavti.com>2021-10-03 16:53:48 +0000
commit55d905fdd934090ce4c6511a3db035e073cd1fcb (patch)
treea52909e237863df09f921bb9c3fa9cfa8dffcb73 /Zotlabs/Lib/Libsync.php
parent0722188ea6d6c1eb30500a540c49adf0b5d25eb8 (diff)
downloadvolse-hubzilla-55d905fdd934090ce4c6511a3db035e073cd1fcb.tar.gz
volse-hubzilla-55d905fdd934090ce4c6511a3db035e073cd1fcb.tar.bz2
volse-hubzilla-55d905fdd934090ce4c6511a3db035e073cd1fcb.zip
clone channel delete issues - part 2
Diffstat (limited to 'Zotlabs/Lib/Libsync.php')
-rw-r--r--Zotlabs/Lib/Libsync.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php
index 67603a0e3..9118813a7 100644
--- a/Zotlabs/Lib/Libsync.php
+++ b/Zotlabs/Lib/Libsync.php
@@ -704,6 +704,15 @@ class Libsync {
$ret = [];
+ // If a sender reports that the channel has been deleted, delete its hubloc
+ if (isset($arr['deleted_locally']) && intval($arr['deleted_locally'])) {
+ q("UPDATE hubloc SET hubloc_deleted = 1, hubloc_updated = '%s' WHERE hubloc_hash = '%s' AND hubloc_url = '%s'",
+ dbesc(datetime_convert()),
+ dbesc($sender['hash']),
+ dbesc($sender['site']['url'])
+ );
+ }
+
if ($arr['locations']) {
if ($absolute)
@@ -861,6 +870,7 @@ class Libsync {
$what .= 'delete_hub ';
$changed = true;
}
+
continue;
}