X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ffilenoticestream.php;h=f7bca1ed68e52ec1e7092e62c2267a65002cffad;hb=0b81fbd5906837e2b35994e094e644764a1fb35f;hp=2b5e53eaf798a142fc777d70b428e19a3b343378;hpb=ad86eb78d3dc395b438d1543a36eca509f53e9d4;p=quix0rs-gnu-social.git diff --git a/lib/filenoticestream.php b/lib/filenoticestream.php index 2b5e53eaf7..f7bca1ed68 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:'.$file->id), + $profile); } }