restrict the network/channel navbar search to content and hashtags
This commit is contained in:
parent
6349a7417f
commit
5505f5fa02
@ -18,6 +18,9 @@ class Channel extends \Zotlabs\Web\Controller {
|
||||
|
||||
function init() {
|
||||
|
||||
if(strpos($_GET['search'], ['@', '!', '?']) == 0)
|
||||
goaway('search' . '?f=&search=' . $_GET['search']);
|
||||
|
||||
$which = null;
|
||||
if(argc() > 1)
|
||||
$which = argv(1);
|
||||
|
@ -16,6 +16,9 @@ class Network extends \Zotlabs\Web\Controller {
|
||||
return;
|
||||
}
|
||||
|
||||
if(strpos($_GET['search'], ['@', '!', '?']) == 0)
|
||||
goaway('search' . '?f=&search=' . $_GET['search']);
|
||||
|
||||
if(count($_GET) < 2) {
|
||||
$network_options = get_pconfig(local_channel(),'system','network_page_default');
|
||||
if($network_options)
|
||||
|
Reference in New Issue
Block a user