X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fconversationreplies.php;h=49c806fa98588a00ccf3569a528830806e1c11f8;hb=f110fc5c9a61ac666d88714b170b12f99d911b11;hp=21780fdf1da4a16d9545ce6d9f9250564dc3e2e6;hpb=d36f0707a488b6e2513193a0a2f72811435553ec;p=quix0rs-gnu-social.git diff --git a/actions/conversationreplies.php b/actions/conversationreplies.php index 21780fdf1d..49c806fa98 100644 --- a/actions/conversationreplies.php +++ b/actions/conversationreplies.php @@ -66,18 +66,14 @@ 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(); } 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')); @@ -85,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(); } }