X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FUser_group.php;h=8f736de6d09a5728b194f37487405ee5f2905fee;hb=cb8bf360c42ca8fce44fac62316d6d71d66d912e;hp=2484f3f265252d8c375684b983cd5bac22bb1175;hpb=f143925931a562d7c0e30bbec7bd4fdb2ceb704a;p=quix0rs-gnu-social.git diff --git a/classes/User_group.php b/classes/User_group.php index 2484f3f265..8f736de6d0 100644 --- a/classes/User_group.php +++ b/classes/User_group.php @@ -105,6 +105,11 @@ class User_group extends Managed_DataObject return $this->getProfile()->getNickname(); } + public function getFullname() + { + return $this->getProfile()->getFullname(); + } + public static function defaultLogo($size) { static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile', @@ -148,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); }