X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ffilenoticestream.php;h=fba6183fc22c98d84c6d735731cd91ce98952c7b;hb=cb6b5b2cc6197091b9d831ffeec695cf5ab8713a;hp=8c01893634d55fe030a3a6dced098c73ca8b6d1e;hpb=9f1603462dce7a24d432698c4f46d7dcf1bf7c4f;p=quix0rs-gnu-social.git diff --git a/lib/filenoticestream.php b/lib/filenoticestream.php index 8c01893634..fba6183fc2 100644 --- a/lib/filenoticestream.php +++ b/lib/filenoticestream.php @@ -36,10 +36,14 @@ if (!defined('STATUSNET')) { class FileNoticeStream extends ScopingNoticeStream { - function __construct($file) + function __construct($file, $profile = -1) { + if (is_int($profile) && $profile == -1) { + $profile = Profile::current(); + } parent::__construct(new CachingNoticeStream(new RawFileNoticeStream($file), - 'file:notice-ids:'.$this->url)); + 'file:notice-ids:'.$this->url), + $profile); } } @@ -60,7 +64,6 @@ class RawFileNoticeStream extends NoticeStream function __construct($file) { - parent::__construct(); $this->file = $file; }