]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
$this->q => $q
authorEvan Prodromou <evan@status.net>
Mon, 12 Nov 2012 03:55:22 +0000 (22:55 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 12 Nov 2012 03:55:22 +0000 (22:55 -0500)
actions/apisearchjson.php

index dcdf055c6fb62a2c5fa9e8df79ccef413c6c1d08..612dbdda5c78abcaa5123c16e81bd083016f8908 100644 (file)
@@ -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);