]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/conversationreplies.php
replace 'public' in documentation with 'top'
[quix0rs-gnu-social.git] / actions / conversationreplies.php
index 8c590aa3af7e85a677b3115c330c6dab3b926364..55c3efa9e0cb6eb63099b23885d608a816733531 100644 (file)
@@ -47,7 +47,6 @@ require_once INSTALLDIR.'/lib/noticelist.php';
  */
 class ConversationRepliesAction extends ConversationAction
 {
-
     function handle($args)
     {
         if ($this->boolean('ajax')) {
@@ -67,9 +66,7 @@ class ConversationRepliesAction extends ConversationAction
      */
     function showContent()
     {
-        $notices = Notice::conversationStream($this->id, null, null);
-
-        $ct = new FullThreadedNoticeList($notices, $this);
+        $ct = new FullThreadedNoticeList($this->notices, $this, $this->userProfile);
 
         $cnt = $ct->show();
     }
@@ -80,7 +77,8 @@ class ConversationRepliesAction extends ConversationAction
         $this->xw->startDocument('1.0', 'UTF-8');
         $this->elementStart('html');
         $this->elementStart('head');
-        $this->element('title', null, _('Notice'));
+        // TRANS: Title for conversation page.
+        $this->element('title', null, _m('TITLE','Notice'));
         $this->elementEnd('head');
         $this->elementStart('body');
         $this->showContent();
@@ -88,19 +86,3 @@ class ConversationRepliesAction extends ConversationAction
         $this->elementEnd('html');
     }
 }
-
-class FullThreadedNoticeList extends ThreadedNoticeList
-{
-    function newListItem($notice)
-    {
-        return new FullThreadedNoticeListItem($notice, $this->out);
-    }
-}
-
-class FullThreadedNoticeListItem extends ThreadedNoticeListItem
-{
-    function initialItems()
-    {
-        return 1000; // @fixme
-    }
-}