exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
/**
* Deletes one of the authenticating user's statuses (notices).
*
$this->notice_id = (int)$this->arg('id');
}
- $this->notice = Notice::staticGet((int)$this->notice_id);
+ $this->notice = Notice::getKV((int)$this->notice_id);
return true;
}
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method deleting a status.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404
);
if ($this->user->id == $this->notice->profile_id) {
if (Event::handle('StartDeleteOwnNotice', array($this->user, $this->notice))) {
- $this->notice->delete();
+ $this->notice->deleteAs($this->scoped);
Event::handle('EndDeleteOwnNotice', array($this->user, $this->notice));
}
$this->showNotice();