]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/conversationnoticestream.php
make ConversationNoticeStream accept a profile parameter
[quix0rs-gnu-social.git] / lib / conversationnoticestream.php
index 78ba3a372d0d06660b467b61e4d59c9d08cdda0f..56850fe98248dc03b1ed12704b7adb34ff970c61 100644 (file)
@@ -46,10 +46,11 @@ if (!defined('STATUSNET')) {
  */
 class ConversationNoticeStream extends ScopingNoticeStream
 {
-    function __construct($id)
+    function __construct($id, $profile = null)
     {
         parent::__construct(new CachingNoticeStream(new RawConversationNoticeStream($id),
-                                                    'notice:conversation_ids:'.$id));
+                                                    'notice:conversation_ids:'.$id),
+                            $profile);
     }
 }
 
@@ -98,9 +99,6 @@ class RawConversationNoticeStream extends NoticeStream
             }
         }
 
-        $notice->free();
-        $notice = NULL;
-
         return $ids;
     }
 }
\ No newline at end of file