]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/tagnoticestream.php
Introduced isCurrentProfileInScope() which shall check if current profile is
[quix0rs-gnu-social.git] / lib / tagnoticestream.php
index 1dcf9f14bb9b4f12e951daad8462783bfafc7f7b..567f04b7e45c56ba8866da522e11a9e4656b1f78 100644 (file)
@@ -47,8 +47,11 @@ if (!defined('STATUSNET')) {
 
 class TagNoticeStream extends ScopingNoticeStream
 {
-    function __construct($tag)
+    function __construct($tag, $profile = -1)
     {
+        if (is_int($profile) && $profile == -1) {
+            $profile = Profile::current();
+        }
         parent::__construct(new CachingNoticeStream(new RawTagNoticeStream($tag),
                                                     'notice_tag:notice_ids:' . Cache::keyize($tag)));
     }