From: Evan Prodromou Date: Fri, 15 Apr 2011 22:54:35 +0000 (-0400) Subject: use threadingnoticestream for groups X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9eafc8d0ba2084d09fa891e3dce76ab3b31be12b;p=quix0rs-gnu-social.git use threadingnoticestream for groups --- diff --git a/actions/showgroup.php b/actions/showgroup.php index 7ad9f112e6..5bb90e86dd 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -148,7 +148,7 @@ class ShowgroupAction extends GroupDesignAction $this->userProfile = Profile::current(); - $stream = new GroupNoticeStream($this->group, $this->userProfile); + $stream = new ThreadingGroupNoticeStream($this->group, $this->userProfile); $this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1); @@ -438,3 +438,11 @@ class GroupMembersMiniListItem extends ProfileMiniListItem return $aAttrs; } } + +class ThreadingGroupNoticeStream extends ThreadingNoticeStream +{ + function __construct($group, $profile) + { + parent::__construct(new GroupNoticeStream($group, $profile)); + } +} \ No newline at end of file