diff options
author | friendica <info@friendica.com> | 2012-05-19 02:42:11 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-19 02:42:11 -0700 |
commit | 513ef2410d9b892c8ebcb7ceac96b97023c3b5a5 (patch) | |
tree | 0430bade8ef823fc49c6f3de0f133c38b3c384a0 /mod | |
parent | a49bd0a6866a911d9d3c7a6df9a2cd23827a804f (diff) | |
download | volse-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')
-rw-r--r-- | mod/search.php | 6 |
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; |