]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/conversationnoticestream.php
all filtering stream classes take an optional profile parameter
[quix0rs-gnu-social.git] / lib / conversationnoticestream.php
index 56850fe98248dc03b1ed12704b7adb34ff970c61..66075db84f436a62c095174f0036b8231fddf4a5 100644 (file)
@@ -46,8 +46,12 @@ if (!defined('STATUSNET')) {
  */
 class ConversationNoticeStream extends ScopingNoticeStream
 {
-    function __construct($id, $profile = null)
+    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),
                             $profile);