]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/groupnoticestream.php
Merge branch '1.0.x' into testing
[quix0rs-gnu-social.git] / lib / groupnoticestream.php
index 22d94d0482fcc7f1ee54884dfc692473f41ec3e0..26784458e0ea1c7a7590cd068593098bcc13dab5 100644 (file)
@@ -46,10 +46,14 @@ if (!defined('STATUSNET')) {
  */
 class GroupNoticeStream extends ScopingNoticeStream
 {
-    function __construct($group)
+    function __construct($group, $profile = -1)
     {
+        if (is_int($profile) && $profile == -1) {
+            $profile = Profile::current();
+        }
         parent::__construct(new CachingNoticeStream(new RawGroupNoticeStream($group),
-                                                    'user_group:notice_ids:' . $group->id));
+                                                    'user_group:notice_ids:' . $group->id),
+                            $profile);
     }
 }