From c6b459cf969c9abaa98719fb5202fac9b8ce40c0 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 19 Jan 2022 19:11:49 +0000 Subject: drop_item() requires the item id not the item array --- include/connections.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/connections.php b/include/connections.php index a0a9e04a7..dcfcc3985 100644 --- a/include/connections.php +++ b/include/connections.php @@ -286,17 +286,18 @@ function remove_all_xchan_resources($xchan, $channel_id = 0) { $dirmode = intval(get_config('system','directory_mode')); - $r = q("delete from photo where xchan = '%s'", dbesc($xchan) ); + $r = q("select resource_id, resource_type, uid, id from item where ( author_xchan = '%s' or owner_xchan = '%s' ) ", dbesc($xchan), dbesc($xchan) ); + if($r) { foreach($r as $rr) { - drop_item($rr,false); + drop_item($rr['id'],false); } } -- cgit v1.2.3 From 23e59b5dccefac89b9e58d49f4498ac4e1034d7a Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 19 Jan 2022 19:14:30 +0000 Subject: update changelog --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index cc0b90ce2..97dea6e95 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -20,6 +20,7 @@ Hubzilla 7.0 (2022-??-??) - Improved poll rendering Bugfixes + - Fix items not deleted on remote channel purge - Fix plink in post_activity_item() - Fix multiple update_poll() calls dismissed in queueworker - Fix blocked or ignored contacts displayed in connections -- cgit v1.2.3