Change main router request variable from 'q' to 'req'. This is necessary to implement search in the twitter api addon, because twitter requires use of the variable 'q'.

This commit is contained in:
zotlabs
2018-08-26 23:00:31 -07:00
parent 7018da3f12
commit 9367e9fe5a
11 changed files with 19 additions and 19 deletions

View File

@@ -46,7 +46,7 @@ class Rpost extends \Zotlabs\Web\Controller {
// make sure we're not looping to our own hub
if(($url) && (! stristr($url, \App::get_hostname()))) {
foreach($_GET as $key => $arg) {
if($key === 'q')
if($key === 'req')
continue;
$url .= '&' . $key . '=' . $arg;
}