]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use threadingnoticestream for inbox
authorEvan Prodromou <evan@status.net>
Fri, 15 Apr 2011 22:51:18 +0000 (18:51 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 15 Apr 2011 22:51:18 +0000 (18:51 -0400)
actions/all.php

index a77d6014f4d116bc9aab8aae3ef3b6e1b219508a..db89e5d838a162e970fd2b5120e8a2d212292c1d 100644 (file)
@@ -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));
+    }
+}