From 684d0a386d5405a692df6c62c147a482e75e3f51 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 7 Apr 2011 15:39:23 -0400 Subject: [PATCH] allow passing a profile to inboxnoticestream --- lib/inboxnoticestream.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/inboxnoticestream.php b/lib/inboxnoticestream.php index c7939f7977..7570210d3e 100644 --- a/lib/inboxnoticestream.php +++ b/lib/inboxnoticestream.php @@ -52,11 +52,11 @@ class InboxNoticeStream extends ScopingNoticeStream * * @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 // uses Inbox::staticGet(), which is cached. - parent::__construct(new RawInboxNoticeStream($user)); + parent::__construct(new RawInboxNoticeStream($user), $profile); } } -- 2.39.5