]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make ConversationNoticeStream accept a profile parameter
authorEvan Prodromou <evan@status.net>
Fri, 8 Apr 2011 22:03:18 +0000 (18:03 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 8 Apr 2011 22:03:18 +0000 (18:03 -0400)
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