X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Frepeatedbymenoticestream.php;h=4e3e34162b15acb33feee43a98937ea6683aae98;hb=a8bcdc905f197c75f502e44bdca486b8418e1d3a;hp=98c1583d6a596481a252a9ef7d1ad14b32358296;hpb=d69f912b00ff66e6b315599ce52d6992ac43d19a;p=quix0rs-gnu-social.git diff --git a/lib/repeatedbymenoticestream.php b/lib/repeatedbymenoticestream.php index 98c1583d6a..4e3e34162b 100644 --- a/lib/repeatedbymenoticestream.php +++ b/lib/repeatedbymenoticestream.php @@ -47,10 +47,14 @@ if (!defined('STATUSNET')) { class RepeatedByMeNoticeStream extends ScopingNoticeStream { - function __construct($user) + function __construct($user, $profile = -1) { + if (is_int($profile) && $profile == -1) { + $profile = Profile::current(); + } parent::__construct(new CachingNoticeStream(new RawRepeatedByMeNoticeStream($user), - 'user:repeated_by_me:'.$user->id)); + 'user:repeated_by_me:'.$user->id), + $profile); } }