* @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);
}
}