123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class FavoritesrssAction extends TargetedRss10Action
- {
- protected function getNotices()
- {
-
- $own = $this->scoped instanceof Profile ? $this->target->getID() === $this->scoped->getID() : false;
- $stream = Fave::stream($this->target->getID(), 0, $this->limit, $own);
- return $stream->fetchAll();
- }
-
- function getChannel()
- {
- $user = $this->user;
- $c = array('url' => common_local_url('favoritesrss',
- array('nickname' =>
- $user->nickname)),
-
-
- 'title' => sprintf(_("%s's favorite notices"), $user->nickname),
- 'link' => common_local_url('showfavorites',
- array('nickname' =>
- $user->nickname)),
-
-
- 'description' => sprintf(_('Updates favored by %1$s on %2$s!'),
- $user->nickname, common_config('site', 'name')));
- return $c;
- }
- }
|