]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/peopletagnoticestream.php
all filtering stream classes take an optional profile parameter
[quix0rs-gnu-social.git] / lib / peopletagnoticestream.php
index 34e7443da5e0e45d16abb86668770832d2f5619a..5eed25412fc38c10b46756e1ffdbfa10496fe4c9 100644 (file)
@@ -47,10 +47,14 @@ if (!defined('STATUSNET')) {
  */
 class PeopletagNoticeStream extends ScopingNoticeStream
 {
-    function __construct($plist)
+    function __construct($plist, $profile = -1)
     {
+        if (is_int($profile) && $profile == -1) {
+            $profile = Profile::current();
+        }
         parent::__construct(new CachingNoticeStream(new RawPeopletagNoticeStream($plist),
-                                                    'profile_tag:notice_ids:' . $plist->id));
+                                                    'profile_tag:notice_ids:' . $plist->id),
+                            $profile);
     }
 }