summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-05-28 16:18:40 -0700
committerBrion Vibber <brion@pobox.com>2010-05-28 16:18:40 -0700
commit3ba165cfab7ce30ade64bf557e9c248de2e07029 (patch)
treeb62f4087f60265fe1db6d136ab3aaf10d0bd3f88 /actions
parent2f2fa100715f9c09b2b91a2d1afddacf7b7f16db (diff)
parentf4539b52ad2c25a87e906c68d955ef921678e18c (diff)
Merge branch 'master' into testing
Diffstat (limited to 'actions')
-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();
}
/**