class ReplyNoticeStream extends ScopingNoticeStream
{
- function __construct($userId)
+ function __construct($userId, $profile=-1)
{
+ if (is_int($profile) && $profile == -1) {
+ $profile = Profile::current();
+ }
parent::__construct(new CachingNoticeStream(new RawReplyNoticeStream($userId),
- 'reply:stream:' . $userId));
+ 'reply:stream:' . $userId),
+ $profile);
}
}
$this->userId = $userId;
}
- function getNoticeIds($offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $max_id=0)
+ function getNoticeIds($offset, $limit, $since_id, $max_id)
{
$reply = new Reply();
$reply->profile_id = $this->userId;