* Copyright (C) 2011, StatusNet, Inc.
*
* Stream of notices for the user's inbox
- *
+ *
* PHP version 5
*
* This program is free software: you can redistribute it and/or modify
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class InboxNoticeStream extends ScopingNoticeStream
{
/**
*
* @param User $user User to get a stream for
*/
- function __construct($user, $profile = null)
+ function __construct($user, $profile = -1)
{
+ if (is_int($profile) && $profile == -1) {
+ $profile = Profile::current();
+ }
// Note: we don't use CachingNoticeStream since RawInboxNoticeStream
// uses Inbox::staticGet(), which is cached.
parent::__construct(new RawInboxNoticeStream($user), $profile);
return $ids;
}
-}
\ No newline at end of file
+}