restrict the network/channel navbar search to content and hashtags

This commit is contained in:
Mario Vavti 2018-05-30 22:55:28 +02:00
parent 6349a7417f
commit 5505f5fa02
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -15,6 +15,9 @@ class Network extends \Zotlabs\Web\Controller {
notice( t('Permission denied.') . EOL);
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');