X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FUser_group.php;h=8f736de6d09a5728b194f37487405ee5f2905fee;hb=cb8bf360c42ca8fce44fac62316d6d71d66d912e;hp=ecec1ee663d5d1de785c1c72916b85bf0cfeda86;hpb=b9a11f8c216499bf0cb6a93ea04e688c96bb3923;p=quix0rs-gnu-social.git diff --git a/classes/User_group.php b/classes/User_group.php index ecec1ee663..8f736de6d0 100644 --- a/classes/User_group.php +++ b/classes/User_group.php @@ -153,7 +153,9 @@ class User_group extends Managed_DataObject function getNotices($offset, $limit, $since_id=null, $max_id=null) { - $stream = new GroupNoticeStream($this); + // FIXME: Get the Profile::current() some other way, to avoid + // possible confusion between current session and queue process. + $stream = new GroupNoticeStream($this, Profile::current()); return $stream->getNotices($offset, $limit, $since_id, $max_id); }