X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ftaggedprofilenoticestream.php;h=eec20cd8c660153f209ba1c518adc05d7da0fe95;hb=8abc2d3b8d603d45d1228684f7366b5e4e8ab8de;hp=83c304ed8ffedce35d2797e9f2b53014b56b35f1;hpb=cd8717ca09eaa544536602bc9bd5a1f7b31e8d7c;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); } }