X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Frepeatsofmenoticestream.php;h=ec80d8431447c10fadb929728ecc4f04055fa908;hb=d81b25729005973e6daa27fc787a042f05a12c94;hp=f51fc9e4472d49b1d041f01cbeae762e60875497;hpb=9f1603462dce7a24d432698c4f46d7dcf1bf7c4f;p=quix0rs-gnu-social.git diff --git a/lib/repeatsofmenoticestream.php b/lib/repeatsofmenoticestream.php index f51fc9e447..ec80d84314 100644 --- a/lib/repeatsofmenoticestream.php +++ b/lib/repeatsofmenoticestream.php @@ -47,10 +47,14 @@ if (!defined('STATUSNET')) { class RepeatsOfMeNoticeStream extends ScopingNoticeStream { - function __construct($user) + function __construct($user, $profile=-1) { + if (is_int($profile) && $profile == -1) { + $profile = Profile::current(); + } parent::__construct(new CachingNoticeStream(new RawRepeatsOfMeNoticeStream($user), - 'user:repeats_of_me:'.$user->id)); + 'user:repeats_of_me:'.$user->id), + $profile); } }