]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/searchnoticestream.php
UPDATE ActivityVerb
[quix0rs-gnu-social.git] / lib / searchnoticestream.php
index 6593a4c86087ebfaddba661281f10acadba57239..9c31a709c64366bc2b41dc57199cf4e5326f4567 100644 (file)
  * @link      http://status.net/
  */
 
-if (!defined('STATUSNET')) {
-    // This check helps protect against security problems;
-    // your code file can't be executed directly from the web.
-    exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
 
 /**
  * Stream of notice search results
@@ -47,13 +43,9 @@ if (!defined('STATUSNET')) {
 
 class SearchNoticeStream extends ScopingNoticeStream
 {
-    function __construct($q, $profile = -1)
+    function __construct($q, Profile $scoped=null)
     {
-        if (is_int($profile) && $profile == -1) {
-            $profile = Profile::current();
-        }
-
-        parent::__construct(new RawSearchNoticeStream($q), $profile);
+        parent::__construct(new RawSearchNoticeStream($q), $scoped);
     }
 }
 
@@ -89,4 +81,4 @@ class RawSearchNoticeStream extends NoticeStream
 
         return $ids;
     }
-}
\ No newline at end of file
+}