From 434c9ae47afc4527ff58180126b5b6c43730fc50 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 12 Jan 2013 19:05:14 -0800 Subject: rewrite the conv search --- mod/network.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/network.php') diff --git a/mod/network.php b/mod/network.php index 49121dd52..143b7c5d1 100644 --- a/mod/network.php +++ b/mod/network.php @@ -545,10 +545,9 @@ function network_content(&$a, $update = 0, $load = false) { } if($conv) { - $sql_extra .= sprintf(" AND `item`.`parent` IN (SELECT distinct(`parent`) from item where ( author_xchan like '%s' or `item`.`id` in (select term.oid from term where term.type = %d and term.term = '%s' and term.uid = `item`.`uid`))) ", + $sql_extra .= sprintf(" AND parent IN (SELECT distinct(parent) from item where ( author_xchan like '%s' or ( item_flags & %d ))) ", dbesc(protect_sprintf($channel['channel_hash'])), - intval(TERM_MENTION), - dbesc(protect_sprintf($channel['channel_address'])) + intval(ITEM_MENTIONSME) ); } @@ -621,7 +620,7 @@ function network_content(&$a, $update = 0, $load = false) { if($load) { // Fetch a page full of parent items for this page - +dbg(1); $r = q("SELECT item.id AS item_id FROM item left join abook on item.author_xchan = abook.abook_xchan WHERE item.uid = %d AND item.item_restrict = 0 @@ -632,6 +631,7 @@ function network_content(&$a, $update = 0, $load = false) { intval(local_user()), intval(ABOOK_FLAG_BLOCKED) ); +dbg(0); } else { // update -- cgit v1.2.3