* @category Personal
* @package StatusNet
* @author Evan Prodromou <evan@status.net>
- * @copyright 2008-2009 StatusNet, Inc.
+ * @copyright 2008-2011 StatusNet, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-class RepliesAction extends OwnerDesignAction
+class RepliesAction extends Action
{
var $page = null;
var $notice;
common_set_returnto($this->selfUrl());
- $this->notice = $this->user->getReplies(($this->page-1) * NOTICES_PER_PAGE,
- NOTICES_PER_PAGE + 1);
+ $stream = new ReplyNoticeStream($this->user->id,
+ Profile::current());
+
+ $this->notice = $stream->getNotices(($this->page-1) * NOTICES_PER_PAGE,
+ NOTICES_PER_PAGE + 1);
if($this->page > 1 && $this->notice->N == 0){
// TRANS: Server error when page not found (404)