Bugfix: api/statuses/destroy.:format was outputting deleted notice
twice, causing parsers to fail.
This commit is contained in:
parent
c5b61078e1
commit
cef302cacd
@ -120,18 +120,11 @@ class ApiStatusesDestroyAction extends ApiAuthAction
|
|||||||
$replies->get('notice_id', $this->notice_id);
|
$replies->get('notice_id', $this->notice_id);
|
||||||
$replies->delete();
|
$replies->delete();
|
||||||
$this->notice->delete();
|
$this->notice->delete();
|
||||||
|
$this->showNotice();
|
||||||
if ($this->format == 'xml') {
|
|
||||||
$this->showSingleXmlStatus($this->notice);
|
|
||||||
} elseif ($this->format == 'json') {
|
|
||||||
$this->show_single_json_status($this->notice);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$this->clientError(_('You may not delete another user\'s status.'),
|
$this->clientError(_('You may not delete another user\'s status.'),
|
||||||
403, $this->format);
|
403, $this->format);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->showNotice();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user