- if (isset($apidata['api_arg'])) {
- $selfuri = common_root_url() .
- 'api/statuses/user_timeline/' .
- $apidata['api_arg'] . '.atom';
- } else {
- $selfuri = common_root_url() .
- 'api/statuses/user_timeline.atom';
- }
- $this->showAtomTimeline(
- $this->notices, $title, $id, $link,
- $subtitle, $suplink, $selfuri, $logo
- );
+ header('Content-Type: application/atom+xml; charset=utf-8');
+
+ $atom->setId($self);
+ $atom->setSelfLink($self);
+ $atom->addEntryFromNotices($this->notices);
+ $this->raw($atom->getString());
+