]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/conversationreplies.php
Bad route config (thanks brw12)
[quix0rs-gnu-social.git] / actions / conversationreplies.php
index 51bc97f1fceaafb6594b28ade68bed45ab93cdab..49c806fa98588a00ccf3569a528830806e1c11f8 100644 (file)
@@ -66,16 +66,14 @@ class ConversationRepliesAction extends ConversationAction
      */
     function showContent()
     {
-        $ct = new FullThreadedNoticeList($this->notices, $this);
+        $ct = new FullThreadedNoticeList($this->notices, $this, $this->userProfile);
 
         $cnt = $ct->show();
     }
 
     function showAjax()
     {
-        header('Content-Type: text/xml;charset=utf-8');
-        $this->xw->startDocument('1.0', 'UTF-8');
-        $this->elementStart('html');
+        $this->startHTML('text/xml;charset=utf-8');
         $this->elementStart('head');
         // TRANS: Title for conversation page.
         $this->element('title', null, _m('TITLE','Notice'));
@@ -83,22 +81,6 @@ class ConversationRepliesAction extends ConversationAction
         $this->elementStart('body');
         $this->showContent();
         $this->elementEnd('body');
-        $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
+        $this->endHTML();
     }
 }