use threading notice stream wrapper for public

This commit is contained in:
Evan Prodromou 2011-04-15 18:47:56 -04:00
parent ff782f1d97
commit 52fce18e0a
1 changed files with 9 additions and 1 deletions

View File

@ -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));
}
}