aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-10-19 10:21:47 +0200
committerMario Vavti <mario@mariovavti.com>2017-10-19 10:21:47 +0200
commit21b2c0afa393ed0a3a363c5a0737727a53bc99b8 (patch)
tree97603db0cd42062d18899e61ca782162a244c465 /include
parentca4c725d57b0da9e6ea925023fb7487d4df48b2a (diff)
downloadvolse-hubzilla-21b2c0afa393ed0a3a363c5a0737727a53bc99b8.tar.gz
volse-hubzilla-21b2c0afa393ed0a3a363c5a0737727a53bc99b8.tar.bz2
volse-hubzilla-21b2c0afa393ed0a3a363c5a0737727a53bc99b8.zip
fix issue #837 - w2w posts not removed in contact_remove()
Diffstat (limited to 'include')
-rw-r--r--include/connections.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/connections.php b/include/connections.php
index 0cf4cdc5a..60bce018e 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -369,7 +369,8 @@ function contact_remove($channel_id, $abook_id) {
return false;
- $r = q("select * from item where author_xchan = '%s' and uid = %d",
+ $r = q("select * from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d",
+ dbesc($abook['abook_xchan']),
dbesc($abook['abook_xchan']),
intval($channel_id)
);