]> 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 930afe608108027a91d9c1c92b63d631585106fc..26784458e0ea1c7a7590cd068593098bcc13dab5 100644 (file)
@@ -46,8 +46,11 @@ if (!defined('STATUSNET')) {
  */
 class GroupNoticeStream extends ScopingNoticeStream
 {
-    function __construct($group, $profile = null)
+    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),
                             $profile);