* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class FaveNoticeStream extends ScopingNoticeStream
{
- function __construct($user_id, $own)
+ function __construct($user_id, $own, $profile = -1)
{
$stream = new RawFaveNoticeStream($user_id, $own);
if ($own) {
} else {
$key = 'fave:ids_by_user:'.$user_id;
}
- parent::__construct(new CachingNoticeStream($stream, $key));
+ if (is_int($profile) && $profile == -1) {
+ $profile = Profile::current();
+ }
+ parent::__construct(new CachingNoticeStream($stream, $key),
+ $profile);
}
}
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class RawFaveNoticeStream extends NoticeStream
{
protected $user_id;