diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-12 09:41:49 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-12 09:41:49 -0800 |
commit | f72eb17304af9c2d7dac8a34b07bd2433b79c8c4 (patch) | |
tree | 3862aab32eae74edba8fa1b2aa9a62288c544af4 /actions/apitimelineuser.php | |
parent | f3066c80d3c55dd0dbf8315674a76e4d2adbe49a (diff) | |
parent | 3dc84dd02d5558b7e2e9de903eac04edcd73aec7 (diff) |
Merge commit 'origin/testing' into 0.9.x
Diffstat (limited to 'actions/apitimelineuser.php')
-rw-r--r-- | actions/apitimelineuser.php | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php index 2d0047c04..11431a82c 100644 --- a/actions/apitimelineuser.php +++ b/actions/apitimelineuser.php @@ -116,13 +116,13 @@ class ApiTimelineUserAction extends ApiBareAuthAction // We'll use the shared params from the Atom stub // for other feed types. $atom = new AtomUserNoticeFeed($this->user); - $title = $atom->title; - $link = common_local_url( + + $link = common_local_url( 'showstream', array('nickname' => $this->user->nickname) ); - $subtitle = $atom->subtitle; - $logo = $atom->logo; + + $self = $this->getSelfUri(); // FriendFeed's SUP protocol // Also added RSS and Atom feeds @@ -136,25 +136,22 @@ class ApiTimelineUserAction extends ApiBareAuthAction break; case 'rss': $this->showRssTimeline( - $this->notices, $title, $link, - $subtitle, $suplink, $logo + $this->notices, + $atom->title, + $link, + $atom->subtitle, + $suplink, + $atom->logo, + $self ); break; case 'atom': header('Content-Type: application/atom+xml; charset=utf-8'); - $id = $this->arg('id'); - $aargs = array('format' => 'atom'); - if (!empty($id)) { - $aargs['id'] = $id; - } - $self = $this->getSelfUri('ApiTimelineUser', $aargs); $atom->setId($self); $atom->setSelfLink($self); - $atom->addEntryFromNotices($this->notices); - $this->raw($atom->getString()); break; |