diff --git a/actions/public.php b/actions/public.php index d906d65501..cd15425fab 100644 --- a/actions/public.php +++ b/actions/public.php @@ -88,7 +88,7 @@ class PublicAction extends Action $this->userProfile = Profile::current(); - $stream = new PublicNoticeStream($this->userProfile); + $stream = new ThreadingPublicNoticeStream($this->userProfile); $this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1); @@ -252,3 +252,11 @@ class PublicAction extends Action $this->elementEnd('div'); } } + +class ThreadingPublicNoticeStream extends ThreadingNoticeStream +{ + function __construct($profile) + { + parent::__construct(new PublicNoticeStream($profile)); + } +}