aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-19 22:21:00 -0800
committerfriendica <info@friendica.com>2013-01-19 22:21:00 -0800
commit45be26dd81a1679853763bc79c387bf0c6fdfe57 (patch)
tree306713eecc79b8bb40906454f5d01d8eb948eaf5 /mod
parent994f322d471ff2271055db9344a31c7caef3c0db (diff)
downloadvolse-hubzilla-45be26dd81a1679853763bc79c387bf0c6fdfe57.tar.gz
volse-hubzilla-45be26dd81a1679853763bc79c387bf0c6fdfe57.tar.bz2
volse-hubzilla-45be26dd81a1679853763bc79c387bf0c6fdfe57.zip
more heavy lifting on API - though need to re-visit events and give them all message_ids from the origination site.
Diffstat (limited to 'mod')
-rw-r--r--mod/search.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/search.php b/mod/search.php
index 0a7c404b6..a9f2df069 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -186,11 +186,10 @@ function search_content(&$a) {
if($load) {
$r = q("SELECT distinct(uri), item.* from item
WHERE item_restrict = 0
- AND (( `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = '' AND not ( item_flags & %d ))
+ AND (( `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = '' AND item_private = 0 )
OR ( `item`.`uid` = %d ))
$sql_extra
group by uri ORDER BY created DESC $pager_sql ",
- intval(ITEM_PRIVATE),
intval(local_user()),
intval(ABOOK_FLAG_BLOCKED)