fix issue #837 - w2w posts not removed in contact_remove()
This commit is contained in:
parent
ca4c725d57
commit
21b2c0afa3
@ -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)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user