aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-30 17:06:50 -0700
committerzotlabs <mike@macgirvin.com>2017-05-30 17:06:50 -0700
commit893ae17b99d1a1a720a58879e8075fc9bb1de087 (patch)
tree69dfaf2acc1cb07642acb99c512014216b6e02cf /include
parente48d5383cec4f5e7bd40bbac005819d60f38c970 (diff)
downloadvolse-hubzilla-893ae17b99d1a1a720a58879e8075fc9bb1de087.tar.gz
volse-hubzilla-893ae17b99d1a1a720a58879e8075fc9bb1de087.tar.bz2
volse-hubzilla-893ae17b99d1a1a720a58879e8075fc9bb1de087.zip
provide ability to search webpages (either public or which contain the observer in the acl) in addition to conversations
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php7
-rw-r--r--include/security.php1
2 files changed, 7 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index a375ee3c3..707f07f4a 100755
--- a/include/items.php
+++ b/include/items.php
@@ -175,6 +175,13 @@ function item_normal() {
and item.item_blocked = 0 ";
}
+function item_normal_search() {
+ return " and item.item_hidden = 0 and item.item_type in (0,3) and item.item_deleted = 0
+ and item.item_unpublished = 0 and item.item_delayed = 0 and item.item_pending_remove = 0
+ and item.item_blocked = 0 ";
+}
+
+
/**
* @brief
*
diff --git a/include/security.php b/include/security.php
index ddbb3d806..6e7b3dbb2 100644
--- a/include/security.php
+++ b/include/security.php
@@ -467,7 +467,6 @@ function scopes_sql($uid,$observer) {
*/
function public_permissions_sql($observer_hash) {
- //$observer = App::get_observer();
$groups = init_groups_visitor($observer_hash);
$gs = '<<>>'; // should be impossible to match