]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixed limit for conversations
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 3 Jul 2009 14:37:39 +0000 (10:37 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 3 Jul 2009 14:37:39 +0000 (10:37 -0400)
actions/conversation.php

index 468409189bdd09f2f210ae764140b563ed615cb6..5049a2232591e9dc7cb72ee8b62478d8fa10e374 100644 (file)
@@ -31,6 +31,11 @@ if (!defined('LACONICA')) {
     exit(1);
 }
 
+// XXX: not sure how to do paging yet,
+// so set a 60-notice limit
+
+define('CONVERSATION_LIMIT', 60);
+
 require_once INSTALLDIR.'/lib/noticelist.php';
 
 /**
@@ -107,7 +112,7 @@ class ConversationAction extends Action
 
     function showContent()
     {
-        $notices = Notice::conversationStream($this->id, null);
+        $notices = Notice::conversationStream($this->id, null, CONVERSATION_LIMIT);
 
         $ct = new ConversationTree($notices, $this);