]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apistatusesretweets.php
Remove unnecessary require lines and definitions
[quix0rs-gnu-social.git] / actions / apistatusesretweets.php
index cc7caee19d6fd51d7ff9c6646fcc6cfcb71401e4..7af4cd3ec6649959832917de0019e43188df2ee0 100644 (file)
@@ -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;
         }