From ee81f98828a640c99c9ff50f0fff9b98a7e2ad6d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 15 Apr 2011 18:51:18 -0400 Subject: [PATCH] use threadingnoticestream for inbox --- actions/all.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/actions/all.php b/actions/all.php index a77d6014f4..db89e5d838 100644 --- a/actions/all.php +++ b/actions/all.php @@ -56,7 +56,7 @@ class AllAction extends ProfileAction { parent::prepare($args); - $stream = new InboxNoticeStream($this->user); + $stream = new ThreadingInboxNoticeStream($this->user, Profile::current()); $this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1, @@ -205,3 +205,11 @@ class AllAction extends ProfileAction } } } + +class ThreadingInboxNoticeStream extends ThreadingNoticeStream +{ + function __construct($user, $profile) + { + parent::__construct(new InboxNoticeStream($user, $profile)); + } +}