summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-05-28 06:22:12 +0000
committerZach Copley <zach@status.net>2010-05-28 06:24:10 +0000
commitcef302cacdf86d1c82f7937d2901f9254c88bf8a (patch)
treebd967aef8dd97be4b7c306229410715a1c400625
parentc5b61078e1548fba2820620e2e8f5fcbbda611a8 (diff)
Bugfix: api/statuses/destroy.:format was outputting deleted notice
twice, causing parsers to fail.
-rw-r--r--actions/apistatusesdestroy.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/actions/apistatusesdestroy.php b/actions/apistatusesdestroy.php
index f7d52f020..0bfcdd060 100644
--- a/actions/apistatusesdestroy.php
+++ b/actions/apistatusesdestroy.php
@@ -57,7 +57,7 @@ require_once INSTALLDIR . '/lib/apiauth.php';
class ApiStatusesDestroyAction extends ApiAuthAction
{
- var $status = null;
+ var $status = null;
/**
* Take arguments for running
@@ -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();
}
/**