X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapistatusesretweets.php;h=7af4cd3ec6649959832917de0019e43188df2ee0;hb=325199b5e68f413e96eabc7a293089f5c748e9ce;hp=cc7caee19d6fd51d7ff9c6646fcc6cfcb71401e4;hpb=c1cee3b27ffa1529009195604c5495bef4f83bc2;p=quix0rs-gnu-social.git diff --git a/actions/apistatusesretweets.php b/actions/apistatusesretweets.php index cc7caee19d..7af4cd3ec6 100644 --- a/actions/apistatusesretweets.php +++ b/actions/apistatusesretweets.php @@ -31,9 +31,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apiauth.php'; -require_once INSTALLDIR . '/lib/mediafile.php'; - /** * Show up to 100 repeats of a notice * @@ -63,7 +60,7 @@ class ApiStatusesRetweetsAction extends ApiAuthAction $id = $this->trimmed('id'); - $this->original = Notice::staticGet('id', $id); + $this->original = Notice::getKV('id', $id); if (empty($this->original)) { // TRANS: Client error displayed trying to display redents of a non-exiting notice. @@ -106,7 +103,7 @@ class ApiStatusesRetweetsAction extends ApiAuthAction $this->showJsonTimeline($strm); break; default: - // TRANS: Client error displayed when trying to handle an unknown API method. + // TRANS: Client error displayed when coming across a non-supported API method. $this->clientError(_('API method not found.'), $code = 404); break; }