1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class AllrssAction extends TargetedRss10Action
- {
- protected function getNotices()
- {
- $stream = new InboxNoticeStream($this->target, $this->scoped);
- return $stream->getNotices(0, $this->limit)->fetchAll();
- }
-
- function getChannel()
- {
- $c = array('url' => common_local_url('allrss',
- array('nickname' =>
- $this->target->getNickname())),
-
- 'title' => sprintf(_('%s and friends'), $this->target->getNickname()),
- 'link' => common_local_url('all',
- array('nickname' =>
- $this->target->getNickname())),
-
- 'description' => sprintf(_('Updates from %1$s and friends on %2$s!'),
- $this->target->getNickname(), common_config('site', 'name')));
- return $c;
- }
- }
|