X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Freplynoticestream.php;h=ec13ff9a67f6906bd80d6e7149f10832906031da;hb=14fe22e4307044f2eb08264a7b83f9c2de245dba;hp=9de8d4efaf9c49ca62b17e48e819537c2f7b4dba;hpb=36b331d469b6dcd1101783f21265f7be624bc58f;p=quix0rs-gnu-social.git diff --git a/lib/replynoticestream.php b/lib/replynoticestream.php index 9de8d4efaf..ec13ff9a67 100644 --- a/lib/replynoticestream.php +++ b/lib/replynoticestream.php @@ -47,10 +47,14 @@ if (!defined('STATUSNET')) { class ReplyNoticeStream extends ScopingNoticeStream { - function __construct($userId) + function __construct($userId, $profile=-1) { + if (is_int($profile) && $profile == -1) { + $profile = Profile::current(); + } parent::__construct(new CachingNoticeStream(new RawReplyNoticeStream($userId), - 'reply:stream:' . $userId)); + 'reply:stream:' . $userId), + $profile); } }