aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-19 02:42:11 -0700
committerfriendica <info@friendica.com>2012-05-19 02:42:11 -0700
commit513ef2410d9b892c8ebcb7ceac96b97023c3b5a5 (patch)
tree0430bade8ef823fc49c6f3de0f133c38b3c384a0 /mod/search.php
parenta49bd0a6866a911d9d3c7a6df9a2cd23827a804f (diff)
downloadvolse-hubzilla-513ef2410d9b892c8ebcb7ceac96b97023c3b5a5.tar.gz
volse-hubzilla-513ef2410d9b892c8ebcb7ceac96b97023c3b5a5.tar.bz2
volse-hubzilla-513ef2410d9b892c8ebcb7ceac96b97023c3b5a5.zip
backend support for 'x' deliveries per process - x is configurable, more importantly any search starting with # is automatically a tag search. TODO: Need to extend this to people searches starting with @
Diffstat (limited to 'mod/search.php')
-rw-r--r--mod/search.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/search.php b/mod/search.php
index d467764b0..635c87b70 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -96,6 +96,12 @@ function search_content(&$a) {
$o .= search($search,'search-box','/search',((local_user()) ? true : false));
+
+ if(strpos($search,'#') === 0) {
+ $tag = true;
+ $search = substr($search,1);
+ }
+
if(! $search)
return $o;