]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/conversationnoticestream.php
better output for registration confirmation
[quix0rs-gnu-social.git] / lib / conversationnoticestream.php
index d7338d0245bc5ab7963f57c5dafc7531d52ece4a..66075db84f436a62c095174f0036b8231fddf4a5 100644 (file)
@@ -44,13 +44,17 @@ if (!defined('STATUSNET')) {
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
-
 class ConversationNoticeStream extends ScopingNoticeStream
 {
-    function __construct($id)
+    function __construct($id, $profile = -1)
     {
+        if (is_int($profile) && $profile == -1) {
+            $profile = Profile::current();
+        }
+
         parent::__construct(new CachingNoticeStream(new RawConversationNoticeStream($id),
-                                                    'notice:conversation_ids:'.$id));
+                                                    'notice:conversation_ids:'.$id),
+                            $profile);
     }
 }
 
@@ -64,7 +68,6 @@ class ConversationNoticeStream extends ScopingNoticeStream
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
-
 class RawConversationNoticeStream extends NoticeStream
 {
     protected $id;
@@ -74,7 +77,7 @@ class RawConversationNoticeStream extends NoticeStream
         $this->id = $id;
     }
 
-    function getNoticeIds($offset=0, $limit=20, $since_id=0, $max_id=0)
+    function getNoticeIds($offset, $limit, $since_id, $max_id)
     {
         $notice = new Notice();
 
@@ -100,9 +103,6 @@ class RawConversationNoticeStream extends NoticeStream
             }
         }
 
-        $notice->free();
-        $notice = NULL;
-
         return $ids;
     }
 }
\ No newline at end of file