]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/showgroup.php
use threadingnoticestream for groups
[quix0rs-gnu-social.git] / 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