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() {
|
function init() {
|
||||||
|
|
||||||
|
if(strpos($_GET['search'], ['@', '!', '?']) == 0)
|
||||||
|
goaway('search' . '?f=&search=' . $_GET['search']);
|
||||||
|
|
||||||
$which = null;
|
$which = null;
|
||||||
if(argc() > 1)
|
if(argc() > 1)
|
||||||
$which = argv(1);
|
$which = argv(1);
|
||||||
|
@ -15,6 +15,9 @@ class Network extends \Zotlabs\Web\Controller {
|
|||||||
notice( t('Permission denied.') . EOL);
|
notice( t('Permission denied.') . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(strpos($_GET['search'], ['@', '!', '?']) == 0)
|
||||||
|
goaway('search' . '?f=&search=' . $_GET['search']);
|
||||||
|
|
||||||
if(count($_GET) < 2) {
|
if(count($_GET) < 2) {
|
||||||
$network_options = get_pconfig(local_channel(),'system','network_page_default');
|
$network_options = get_pconfig(local_channel(),'system','network_page_default');
|
||||||
|
Reference in New Issue
Block a user