123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class PublicrssAction extends Rss10Action
- {
-
- protected function getNotices()
- {
- $stream = Notice::publicStream(0, $this->limit);
- return $stream->fetchAll();
- }
-
- function getChannel()
- {
- $sitename = common_config('site', 'name');
- $c = array(
- 'url' => common_local_url('publicrss'),
-
- 'title' => sprintf(_('%s public timeline'), $sitename),
- 'link' => common_local_url('public'),
-
- 'description' => sprintf(_('%s updates from everyone.'), $sitename));
- return $c;
- }
-
- function getImage()
- {
-
- }
- function isReadOnly($args)
- {
- return true;
- }
- }
|