X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftaggedprofilenoticestream.php;h=eec20cd8c660153f209ba1c518adc05d7da0fe95;hb=b24d711f552854d88f2df2120672bdaf173335fc;hp=83c304ed8ffedce35d2797e9f2b53014b56b35f1;hpb=e862dcdb8a9cfc21cf00513d76f40d20dd3b1b7a;p=quix0rs-gnu-social.git diff --git a/lib/taggedprofilenoticestream.php b/lib/taggedprofilenoticestream.php index 83c304ed8f..eec20cd8c6 100644 --- a/lib/taggedprofilenoticestream.php +++ b/lib/taggedprofilenoticestream.php @@ -47,10 +47,14 @@ if (!defined('STATUSNET')) { class TaggedProfileNoticeStream extends ScopingNoticeStream { - function __construct($profile, $tag) + function __construct($profile, $tag, $userProfile=-1) { + if (is_int($userProfile) && $userProfile == -1) { + $userProfile = Profile::current(); + } parent::__construct(new CachingNoticeStream(new RawTaggedProfileNoticeStream($profile, $tag), - 'profile:notice_ids_tagged:'.$profile->id.':'.Cache::keyize($tag))); + 'profile:notice_ids_tagged:'.$profile->id.':'.Cache::keyize($tag)), + $userProfile); } }