X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fprofilenoticestream.php;h=64cd31abc48d64f5d83276c5b2ea8db95b8d7d9b;hb=7d64d8c78cfa102b91975598ef9e574d2ef14b8c;hp=ca54ad4892b7eb81976b12e2d374048ad1f665d3;hpb=84984fdbfecdd79630801e2a6ca5b5e9e4b725a1;p=quix0rs-gnu-social.git diff --git a/lib/profilenoticestream.php b/lib/profilenoticestream.php index ca54ad4892..64cd31abc4 100644 --- a/lib/profilenoticestream.php +++ b/lib/profilenoticestream.php @@ -4,7 +4,7 @@ * Copyright (C) 2011, StatusNet, Inc. * * Stream of notices by a profile - * + * * PHP version 5 * * This program is free software: you can redistribute it and/or modify @@ -47,10 +47,14 @@ if (!defined('STATUSNET')) { class ProfileNoticeStream extends ScopingNoticeStream { - function __construct($profile) + function __construct($profile, $userProfile = -1) { + if (is_int($userProfile) && $userProfile == -1) { + $userProfile = Profile::current(); + } parent::__construct(new CachingNoticeStream(new RawProfileNoticeStream($profile), - 'profile:notice_ids:' . $profile->id)); + 'profile:notice_ids:' . $profile->id), + $userProfile); } }