$this->q => $q
This commit is contained in:
parent
d06965603d
commit
6aaee4e5fe
|
@ -122,7 +122,7 @@ class ApiSearchJSONAction extends ApiPrivateAuthAction
|
|||
|
||||
// TODO: Support search operators like from: and to:, boolean, etc.
|
||||
|
||||
if (preg_match('/^#([\pL\pN_\-\.]{1,64})/ue', $this->q)) {
|
||||
if (preg_match('/^#([\pL\pN_\-\.]{1,64})$/ue', $q)) {
|
||||
$stream = new TagNoticeStream(substr($q, 1), $this->auth_profile);
|
||||
} else if ($this->isAnURL($q)) {
|
||||
$canon = File_redirection::_canonUrl($q);
|
||||
|
|
Loading…
Reference in New Issue
Block a user