function getFeeds()
{
return array(
+ new Feed(Feed::JSON,
+ common_local_url(
+ 'ApiTimelineFriends', array(
+ 'format' => 'as',
+ 'id' => $this->user->nickname
+ )
+ ),
+ // TRANS: %s is user nickname.
+ sprintf(_('Feed for friends of %s (Activity Streams JSON)'), $this->user->nickname)),
new Feed(Feed::RSS1,
common_local_url(
'allrss', array(
*/
function getFeeds()
{
- return array(new Feed(Feed::RSS1, common_local_url('publicrss'),
+ return array(new Feed(Feed::JSON,
+ common_local_url('ApiTimelinePublic',
+ array('format' => 'as')),
+ // TRANS: Link description for public timeline feed.
+ _('Public Stream Feed (Activity Streams JSON)')),
+ new Feed(Feed::RSS1, common_local_url('publicrss'),
// TRANS: Link description for public timeline feed.
_('Public Stream Feed (RSS 1.0)')),
new Feed(Feed::RSS2,
*/
function getFeeds()
{
- return array(new Feed(Feed::RSS1,
+ return array(new Feed(Feed::JSON,
+ common_local_url('ApiTimelineMentions',
+ array(
+ 'id' => $this->user->nickname,
+ 'format' => 'as')),
+ // TRANS: Link for feed with replies for a user.
+ // TRANS: %s is a user nickname.
+ sprintf(_('Replies feed for %s (Activity Streams JSON)'),
+ $this->user->nickname)),
+ new Feed(Feed::RSS1,
common_local_url('repliesrss',
array('nickname' => $this->user->nickname)),
// TRANS: Link for feed with replies for a user.
*/
function getFeeds()
{
- return array(new Feed(Feed::RSS1,
+ return array(new Feed(Feed::JSON,
+ common_local_url('ApiTimelineFavorites',
+ array(
+ 'id' => $this->user->nickname,
+ 'format' => 'as')),
+ // TRANS: Feed link text. %s is a username.
+ sprintf(_('Feed for favorites of %s (Activity Streams JSON)'),
+ $this->user->nickname)),
+ new Feed(Feed::RSS1,
common_local_url('favoritesrss',
array('nickname' => $this->user->nickname)),
// TRANS: Feed link text. %s is a username.
common_local_url('grouprss',
array('nickname' => $this->group->nickname));
- return array(new Feed(Feed::RSS1,
+ return array(new Feed(Feed::JSON,
+ common_local_url('ApiTimelineGroup',
+ array('format' => 'as',
+ 'id' => $this->group->id)),
+ // TRANS: Tooltip for feed link. %s is a group nickname.
+ sprintf(_('Notice feed for %s group (Activity Streams JSON)'),
+ $this->group->nickname)),
+ new Feed(Feed::RSS1,
common_local_url('grouprss',
array('nickname' => $this->group->nickname)),
// TRANS: Tooltip for feed link. %s is a group nickname.
function getFeeds()
{
#XXX: make these actually work
- return array(new Feed(Feed::RSS2,
+ return array(new Feed(Feed::JSON,
+ common_local_url(
+ 'ApiTimelineList', array(
+ 'user' => $this->tagger->id,
+ 'id' => $this->peopletag->id,
+ 'format' => 'as'
+ )
+ ),
+ // TRANS: Feed title.
+ // TRANS: %s is tagger's nickname.
+ sprintf(_('Feed for friends of %s (Activity Streams JSON)'), $this->tagger->nickname)),
+ new Feed(Feed::RSS2,
common_local_url(
'ApiTimelineList', array(
'user' => $this->tagger->id,
function getFeeds()
{
- return array(new Feed(Feed::RSS1,
+ return array(new Feed(Feed::JSON,
+ common_local_url('ApiTimelineTag',
+ array('format' => 'as',
+ 'tag' => $this->tag)),
+ // TRANS: Link label for feed on "notices with tag" page.
+ // TRANS: %s is the tag the feed is for.
+ sprintf(_('Notice feed for tag %s (Activity Streams JSON)'),
+ $this->tag)),
+ new Feed(Feed::RSS1,
common_local_url('tagrss',
array('tag' => $this->tag)),
// TRANS: Link label for feed on "notices with tag" page.