allow passing a profile to inboxnoticestream

This commit is contained in:
Evan Prodromou 2011-04-07 15:39:23 -04:00
parent fbc18a3c67
commit 684d0a386d

View File

@ -52,11 +52,11 @@ class InboxNoticeStream extends ScopingNoticeStream
* *
* @param User $user User to get a stream for * @param User $user User to get a stream for
*/ */
function __construct($user) function __construct($user, $profile = null)
{ {
// Note: we don't use CachingNoticeStream since RawInboxNoticeStream // Note: we don't use CachingNoticeStream since RawInboxNoticeStream
// uses Inbox::staticGet(), which is cached. // uses Inbox::staticGet(), which is cached.
parent::__construct(new RawInboxNoticeStream($user)); parent::__construct(new RawInboxNoticeStream($user), $profile);
} }
} }