From: Evan Prodromou Date: Mon, 11 Apr 2011 16:39:06 +0000 (-0400) Subject: show full threaded notice list in conversation view X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d197c86a61d5b34fd317e8d22564111bbd6e6c2c;p=quix0rs-gnu-social.git show full threaded notice list in conversation view --- diff --git a/actions/conversation.php b/actions/conversation.php index 123965afa2..f33d267d35 100644 --- a/actions/conversation.php +++ b/actions/conversation.php @@ -123,7 +123,7 @@ class ConversationAction extends Action */ function showContent() { - $tnl = new ThreadedNoticeList($this->notices, $this, $this->userProfile); + $tnl = new FullThreadedNoticeList($this->notices, $this, $this->userProfile); $cnt = $tnl->show(); } diff --git a/actions/conversationreplies.php b/actions/conversationreplies.php index 450a3d6828..55c3efa9e0 100644 --- a/actions/conversationreplies.php +++ b/actions/conversationreplies.php @@ -86,19 +86,3 @@ class ConversationRepliesAction extends ConversationAction $this->elementEnd('html'); } } - -class FullThreadedNoticeList extends ThreadedNoticeList -{ - function newListItem($notice) - { - return new FullThreadedNoticeListItem($notice, $this->out, $this->userProfile); - } -} - -class FullThreadedNoticeListItem extends ThreadedNoticeListItem -{ - function initialItems() - { - return 1000; // @fixme - } -} diff --git a/lib/fullthreadednoticelist.php b/lib/fullthreadednoticelist.php new file mode 100644 index 0000000000..52b5f279c9 --- /dev/null +++ b/lib/fullthreadednoticelist.php @@ -0,0 +1,75 @@ +. + * + * @category Cache + * @package StatusNet + * @author Evan Prodromou + * @copyright 2011 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 + * @link http://status.net/ + */ + +if (!defined('STATUSNET')) { + // This check helps protect against security problems; + // your code file can't be executed directly from the web. + exit(1); +} + +/** + * A threaded notice list that shows all notices + * + * @category General + * @package StatusNet + * @author Evan Prodromou + * @author Brion Vibber + * @copyright 2011 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 + * @link http://status.net/ + */ + +class FullThreadedNoticeList extends ThreadedNoticeList +{ + function newListItem($notice) + { + return new FullThreadedNoticeListItem($notice, $this->out, $this->userProfile); + } +} + +/** + * A threaded notice list item that shows everything + * + * @category General + * @package StatusNet + * @author Evan Prodromou + * @author Brion Vibber + * @copyright 2011 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 + * @link http://status.net/ + */ + +class FullThreadedNoticeListItem extends ThreadedNoticeListItem +{ + function initialItems() + { + return 1000; // @fixme + } +}