From: Evan Prodromou Date: Thu, 7 Apr 2011 19:39:23 +0000 (-0400) Subject: allow passing a profile to inboxnoticestream X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=684d0a386d5405a692df6c62c147a482e75e3f51;p=quix0rs-gnu-social.git allow passing a profile to inboxnoticestream --- 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); } }