From 21b2c0afa393ed0a3a363c5a0737727a53bc99b8 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 19 Oct 2017 10:21:47 +0200 Subject: fix issue #837 - w2w posts not removed in contact_remove() --- include/connections.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/connections.php') 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) ); -- cgit v1.2.3