3 * Display a conversation in the browser
9 * @author Evan Prodromou <evan@status.net>
10 * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
11 * @link http://status.net/
13 * StatusNet - the distributed open-source microblogging tool
14 * Copyright (C) 2009, StatusNet, Inc.
16 * This program is free software: you can redistribute it and/or modify
17 * it under the terms of the GNU Affero General Public License as published by
18 * the Free Software Foundation, either version 3 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU Affero General Public License for more details.
26 * You should have received a copy of the GNU Affero General Public License
27 * along with this program. If not, see <http://www.gnu.org/licenses/>.
30 if (!defined('STATUSNET') && !defined('LACONICA')) {
34 // XXX: not sure how to do paging yet,
35 // so set a 60-notice limit
37 require_once INSTALLDIR.'/lib/noticelist.php';
40 * Conversation tree in the browser
44 * @author Evan Prodromou <evan@status.net>
45 * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
46 * @link http://status.net/
48 class ConversationRepliesAction extends ConversationAction
50 function handle($args)
52 if ($this->boolean('ajax')) {
55 parent::handle($args);
62 * Display a hierarchical unordered list in the content area.
63 * Uses ConversationTree to do most of the heavy lifting.
67 function showContent()
69 $ct = new FullThreadedNoticeList($this->notices, $this, $this->userProfile);
76 header('Content-Type: text/xml;charset=utf-8');
77 $this->xw->startDocument('1.0', 'UTF-8');
78 $this->elementStart('html');
79 $this->elementStart('head');
80 // TRANS: Title for conversation page.
81 $this->element('title', null, _m('TITLE','Notice'));
82 $this->elementEnd('head');
83 $this->elementStart('body');
85 $this->elementEnd('body');
86 $this->elementEnd('html');