forked from GNUsocial/gnu-social
allow passing a profile to inboxnoticestream
This commit is contained in:
parent
fbc18a3c67
commit
684d0a386d
@ -52,11 +52,11 @@ class InboxNoticeStream extends ScopingNoticeStream
|
|||||||
*
|
*
|
||||||
* @param User $user User to get a stream for
|
* @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
|
// Note: we don't use CachingNoticeStream since RawInboxNoticeStream
|
||||||
// uses Inbox::staticGet(), which is cached.
|
// uses Inbox::staticGet(), which is cached.
|
||||||
parent::__construct(new RawInboxNoticeStream($user));
|
parent::__construct(new RawInboxNoticeStream($user), $profile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user