X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgroupnoticestream.php;h=26784458e0ea1c7a7590cd068593098bcc13dab5;hb=f20ddaec56acfc630cafd1eec58c57ffd9930632;hp=22d94d0482fcc7f1ee54884dfc692473f41ec3e0;hpb=5a2bab07b25443eacc7f5cfde4b9932cdb511e92;p=quix0rs-gnu-social.git diff --git a/lib/groupnoticestream.php b/lib/groupnoticestream.php index 22d94d0482..26784458e0 100644 --- a/lib/groupnoticestream.php +++ b/lib/groupnoticestream.php @@ -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); } }