Bugfix: api/statuses/destroy.:format was outputting deleted notice

twice, causing parsers to fail.
This commit is contained in:
Zach Copley 2010-05-28 06:22:12 +00:00
parent c5b61078e1
commit cef302cacd

View File

@ -120,18 +120,11 @@ class ApiStatusesDestroyAction extends ApiAuthAction
$replies->get('notice_id', $this->notice_id);
$replies->delete();
$this->notice->delete();
if ($this->format == 'xml') {
$this->showSingleXmlStatus($this->notice);
} elseif ($this->format == 'json') {
$this->show_single_json_status($this->notice);
}
$this->showNotice();
} else {
$this->clientError(_('You may not delete another user\'s status.'),
403, $this->format);
}
$this->showNotice();
}
/**