123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class BookmarksrssAction extends TargetedRss10Action
- {
- protected function getNotices()
- {
- $stream = new BookmarksNoticeStream($this->target->getID(), true);
- return $stream->getNotices(0, $this->limit)->fetchAll();
- }
-
- function getChannel()
- {
- $c = array('url' => common_local_url('bookmarksrss',
- array('nickname' =>
- $this->target->getNickname())),
-
-
- 'title' => sprintf(_("%s's bookmarks"), $this->target->getNickname()),
- 'link' => common_local_url('bookmarks',
- array('nickname' =>
- $this->target->getNickname())),
-
-
- 'description' => sprintf(_('Bookmarks posted by %1$s on %2$s!'),
- $this->target->getNickname(), common_config('site', 'name')));
- return $c;
- }
- }
|