X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapistatusesdestroy.php;h=db41c87ad0f5cca2f443d4e247e53e5df1bf8959;hb=a597b2800122be618bbf620eb1e6ae61bf691d15;hp=d73e574b3c1c095b039c03ed528c0902248d3402;hpb=b26eccf33cf69c04a96d5d6d3eddc0ef68ffd4b1;p=quix0rs-gnu-social.git diff --git a/actions/apistatusesdestroy.php b/actions/apistatusesdestroy.php index d73e574b3c..db41c87ad0 100644 --- a/actions/apistatusesdestroy.php +++ b/actions/apistatusesdestroy.php @@ -38,8 +38,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apiauth.php'; - /** * Deletes one of the authenticating user's statuses (notices). * @@ -77,7 +75,7 @@ class ApiStatusesDestroyAction extends ApiAuthAction $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; } @@ -97,7 +95,7 @@ class ApiStatusesDestroyAction extends ApiAuthAction 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 );