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

index 7ad9f112e619c0b86119426c64c490f7ed5bd549..5bb90e86dd2daaf77d1cadeea6dfef831ebb4cb3 100644 (file)
@@ -148,7 +148,7 @@ class ShowgroupAction extends GroupDesignAction
 
         $this->userProfile = Profile::current();
 
-        $stream = new GroupNoticeStream($this->group, $this->userProfile);
+        $stream = new ThreadingGroupNoticeStream($this->group, $this->userProfile);
 
         $this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
                                             NOTICES_PER_PAGE + 1);
@@ -438,3 +438,11 @@ class GroupMembersMiniListItem extends ProfileMiniListItem
         return $aAttrs;
     }
 }
+
+class ThreadingGroupNoticeStream extends ThreadingNoticeStream
+{
+    function __construct($group, $profile)
+    {
+        parent::__construct(new GroupNoticeStream($group, $profile));
+    }
+}
\ No newline at end of file