Commit 21b2c0af authored by Mario's avatar Mario
Browse files

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

parent ca4c725d
...@@ -369,7 +369,8 @@ function contact_remove($channel_id, $abook_id) { ...@@ -369,7 +369,8 @@ function contact_remove($channel_id, $abook_id) {
return false; 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']), dbesc($abook['abook_xchan']),
intval($channel_id) intval($channel_id)
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment