diff options
author | Evan Prodromou <evan@status.net> | 2010-06-01 13:51:41 -0700 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-06-01 13:51:41 -0700 |
commit | a5de2152672f49ad95f114033ef6bf00ece9a0ab (patch) | |
tree | c31d031fb8ffb20b8497a80a7cf13958c50f5ad5 /actions/apistatusesdestroy.php | |
parent | 6d8e01ad13dd9bc9e149f43a1eb88671d4737f4d (diff) | |
parent | 634752f0d262b4fb02456889250378fca084cd2e (diff) |
Merge branch 'master' of gitorious.org:statusnet/mainline
Diffstat (limited to 'actions/apistatusesdestroy.php')
-rw-r--r-- | actions/apistatusesdestroy.php | 11 |
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(); } /** |