*/
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);