diff options
author | Brenda Wallace <shiny@cpan.org> | 2010-01-24 14:54:31 +1300 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2010-01-24 14:54:31 +1300 |
commit | ef3b849db05ff6ad4b9e97b38a82242a710519d1 (patch) | |
tree | 7a121df2e7ed4b4644b92b9652e1fc59999f84df /actions/apitimelineretweetedbyme.php | |
parent | 02a6006bafd663443b512c5c283b64c7dacfbbb1 (diff) | |
parent | 8c54151dbd2dbf99b23124ec618b2fa5570ac2ee (diff) |
Merge commit 'mainline/0.9.x' into 0.9.x
Diffstat (limited to 'actions/apitimelineretweetedbyme.php')
-rw-r--r-- | actions/apitimelineretweetedbyme.php | 51 |
1 files changed, 7 insertions, 44 deletions
diff --git a/actions/apitimelineretweetedbyme.php b/actions/apitimelineretweetedbyme.php index 88652c3fd..564e98619 100644 --- a/actions/apitimelineretweetedbyme.php +++ b/actions/apitimelineretweetedbyme.php @@ -69,58 +69,21 @@ class ApiTimelineRetweetedByMeAction extends ApiAuthAction { parent::prepare($args); - $cnt = $this->int('count', self::DEFAULTCOUNT, self::MAXCOUNT, 1); + $this->serverError('Unimplemented', 503); - $page = $this->int('page', 1, (self::MAXNOTICES/$this->cnt)); - - $since_id = $this->int('since_id'); - - $max_id = $this->int('max_id'); - - return true; + return false; } /** - * Handle the request - * - * show a timeline of the user's repeated notices + * Return true if read only. * - * @param array $args $_REQUEST data (unused) + * @param array $args other arguments * - * @return void + * @return boolean is read only action? */ - function handle($args) + function isReadOnly($args) { - parent::handle($args); - - $offset = ($this->page-1) * $this->cnt; - $limit = $this->cnt; - - $strm = $this->auth_user->repeatedByMe($offset, $limit, $this->since_id, $this->max_id); - - switch ($this->format) { - case 'xml': - $this->showXmlTimeline($strm); - break; - case 'json': - $this->showJsonTimeline($strm); - break; - case 'atom': - $profile = $this->auth_user->getProfile(); - - $title = sprintf(_("Repeated by %s"), $this->auth_user->nickname); - $taguribase = common_config('integration', 'taguri'); - $id = "tag:$taguribase:RepeatedByMe:" . $this->auth_user->id; - $link = common_local_url('showstream', - array('nickname' => $this->auth_user->nickname)); - - $this->showAtomTimeline($strm, $title, $id, $link); - break; - - default: - $this->clientError(_('API method not found.'), $code = 404); - break; - } + return true; } } |