]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/tagnoticestream.php
rename config option site/logdebug to log/debugtrace
[quix0rs-gnu-social.git] / lib / tagnoticestream.php
index 28f5d0e82483ab4536b4427c07002f0c80e00e12..5a99a1aa68a0b30faf7cc6b2ae0f0f371941ce40 100644 (file)
@@ -43,13 +43,11 @@ if (!defined('GNUSOCIAL')) { exit(1); }
 
 class TagNoticeStream extends ScopingNoticeStream
 {
-    function __construct($tag, $profile = -1)
+    function __construct($tag, Profile $scoped=null)
     {
-        if (is_int($profile) && $profile == -1) {
-            $profile = Profile::current();
-        }
         parent::__construct(new CachingNoticeStream(new RawTagNoticeStream($tag),
-                                                    'notice_tag:notice_ids:' . Cache::keyize($tag)));
+                                                    'notice_tag:notice_ids:' . Cache::keyize($tag)),
+                            $scoped);
     }
 }