]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow passing a profile to inboxnoticestream
authorEvan Prodromou <evan@status.net>
Thu, 7 Apr 2011 19:39:23 +0000 (15:39 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 7 Apr 2011 19:39:23 +0000 (15:39 -0400)
lib/inboxnoticestream.php

index c7939f797748b30025b26367e84f74884635ad23..7570210d3ecd9f9b2ca96193160d19ffd4f5a4d1 100644 (file)
@@ -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);
     }
 }