don't included any deleted posts in the self query

This commit is contained in:
friendica 2015-03-30 21:06:41 -07:00
parent da04ae7888
commit cbaa2a9b84

View file

@ -324,7 +324,7 @@ function network_content(&$a, $update = 0, $load = false) {
}
if($conv) {
$sql_extra .= sprintf(" AND parent IN (SELECT distinct(parent) from item where ( author_xchan like '%s' or ( item_flags & %d ) > 0)) ",
$sql_extra .= sprintf(" AND parent IN (SELECT distinct(parent) from item where ( author_xchan like '%s' or ( item_flags & %d ) > 0) and item_restrict = 0 ) ",
dbesc(protect_sprintf($channel['channel_hash'])),
intval(ITEM_MENTIONSME)
);