X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Finboxnoticestream.php;fp=lib%2Finboxnoticestream.php;h=3250351d17aea2fc865a94d1f5b4ee2822df7ccb;hb=d7f96307dc84b49cce11f63260002dc77ef9641f;hp=09c3edb281d76420ba93e9044002f4669447939b;hpb=1b00eb25999a42e8ffa569cdcf719906b8739626;p=quix0rs-gnu-social.git diff --git a/lib/inboxnoticestream.php b/lib/inboxnoticestream.php index 09c3edb281..3250351d17 100644 --- a/lib/inboxnoticestream.php +++ b/lib/inboxnoticestream.php @@ -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);