aboutsummaryrefslogtreecommitdiffstats
path: root/include/connections.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-19 19:14:54 +0000
committerMario <mario@mariovavti.com>2022-01-19 19:14:54 +0000
commit1bc9a7373f251533f04a80fbc1aba8d06a3d4167 (patch)
treeed1057f5fc45b76534a29c1fceb6bc159cb46997 /include/connections.php
parent33254b4cac748a1a45f4637a1faf12d061da2f23 (diff)
parent23e59b5dccefac89b9e58d49f4498ac4e1034d7a (diff)
downloadvolse-hubzilla-1bc9a7373f251533f04a80fbc1aba8d06a3d4167.tar.gz
volse-hubzilla-1bc9a7373f251533f04a80fbc1aba8d06a3d4167.tar.bz2
volse-hubzilla-1bc9a7373f251533f04a80fbc1aba8d06a3d4167.zip
Merge branch 'dev' into 7.0RC
Diffstat (limited to 'include/connections.php')
-rw-r--r--include/connections.php5
1 files 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);
}
}