]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/inboxnoticestream.php
all filtering stream classes take an optional profile parameter
[quix0rs-gnu-social.git] / lib / inboxnoticestream.php
index 09c3edb281d76420ba93e9044002f4669447939b..3250351d17aea2fc865a94d1f5b4ee2822df7ccb 100644 (file)
@@ -51,8 +51,11 @@ class InboxNoticeStream extends ScopingNoticeStream
      *
      * @param User $user User to get a stream for
      */
-    function __construct($user, $profile = null)
+    function __construct($user, $profile = -1)
     {
+        if (is_int($profile) && $profile == -1) {
+            $profile = Profile::current();
+        }
         // Note: we don't use CachingNoticeStream since RawInboxNoticeStream
         // uses Inbox::staticGet(), which is cached.
         parent::__construct(new RawInboxNoticeStream($user), $profile);