1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class RepliesrssAction extends TargetedRss10Action
- {
- protected function getNotices()
- {
- $stream = $this->target->getReplies(0, $this->limit);
- return $stream->fetchAll();
- }
- function getChannel()
- {
- $c = array('url' => common_local_url('repliesrss',
- array('nickname' =>
- $this->target->getNickname())),
-
- 'title' => sprintf(_("Replies to %s"), $this->target->getNickname()),
- 'link' => common_local_url('replies',
- array('nickname' => $this->target->getNickname())),
-
-
- 'description' => sprintf(_('Replies to %1$s on %2$s.'),
- $this->target->getNickname(), common_config('site', 'name')));
- return $c;
- }
- function isReadOnly($args)
- {
- return true;
- }
- }
|