X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ffilenoticestream.php;h=49b93732fbc091e253299df0fb47050ec24be820;hb=8c9efff1ace2d5e466691abf038f096eb5dd5f51;hp=8c01893634d55fe030a3a6dced098c73ca8b6d1e;hpb=e0d5093ee58f921385eba533adb3f0d21dcf3b49;p=quix0rs-gnu-social.git diff --git a/lib/filenoticestream.php b/lib/filenoticestream.php index 8c01893634..49b93732fb 100644 --- a/lib/filenoticestream.php +++ b/lib/filenoticestream.php @@ -28,18 +28,15 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { - // This check helps protect against security problems; - // your code file can't be executed directly from the web. - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } class FileNoticeStream extends ScopingNoticeStream { - function __construct($file) + function __construct($file, Profile $scoped=null) { parent::__construct(new CachingNoticeStream(new RawFileNoticeStream($file), - 'file:notice-ids:'.$this->url)); + 'file:notice-ids:'.$file->id), + $scoped); } } @@ -60,7 +57,6 @@ class RawFileNoticeStream extends NoticeStream function __construct($file) { - parent::__construct(); $this->file = $file; }