fix issue #837 - w2w posts not removed in contact_remove()

This commit is contained in:
Mario Vavti 2017-10-19 10:21:47 +02:00
parent ca4c725d57
commit 21b2c0afa3

View File

@ -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)
);