X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftagnoticestream.php;h=567f04b7e45c56ba8866da522e11a9e4656b1f78;hb=8853821db2ddd81c3d52a9b7508da67026d19708;hp=1dcf9f14bb9b4f12e951daad8462783bfafc7f7b;hpb=9f1603462dce7a24d432698c4f46d7dcf1bf7c4f;p=quix0rs-gnu-social.git diff --git a/lib/tagnoticestream.php b/lib/tagnoticestream.php index 1dcf9f14bb..567f04b7e4 100644 --- a/lib/tagnoticestream.php +++ b/lib/tagnoticestream.php @@ -47,8 +47,11 @@ if (!defined('STATUSNET')) { class TagNoticeStream extends ScopingNoticeStream { - function __construct($tag) + function __construct($tag, $profile = -1) { + if (is_int($profile) && $profile == -1) { + $profile = Profile::current(); + } parent::__construct(new CachingNoticeStream(new RawTagNoticeStream($tag), 'notice_tag:notice_ids:' . Cache::keyize($tag))); }