forked from GNUsocial/gnu-social
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->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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user