X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftagnoticestream.php;h=567f04b7e45c56ba8866da522e11a9e4656b1f78;hb=10f2cde0b1d75fa023b00400162cb525e8719514;hp=1dcf9f14bb9b4f12e951daad8462783bfafc7f7b;hpb=1e73ba00bdd37f46415eb45b1b904dc894fb801c;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))); }