]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apistatusesretweet.php
Subscription "get by" functions now don't use ArrayWrappers
[quix0rs-gnu-social.git] / actions / apistatusesretweet.php
index 4832da1823d6243d49a1122a144d4ad9607c5af1..ee391fdb4adc33ce02b6944ac3d9f79c27163679 100644 (file)
@@ -31,9 +31,6 @@ if (!defined('STATUSNET')) {
     exit(1);
 }
 
-require_once INSTALLDIR . '/lib/apiauth.php';
-require_once INSTALLDIR . '/lib/mediafile.php';
-
 /**
  * Repeat a notice through the API
  *
@@ -67,7 +64,7 @@ class ApiStatusesRetweetAction 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 repeat a non-existing notice through the API.