X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=actions%2Fapistatusesretweet.php;h=ee391fdb4adc33ce02b6944ac3d9f79c27163679;hb=63306081bc164fcf57abd7f0996767626fd1e501;hp=4832da1823d6243d49a1122a144d4ad9607c5af1;hpb=c97048d01bea468e0cf8865b60c3c250b4515c39;p=quix0rs-gnu-social.git diff --git a/actions/apistatusesretweet.php b/actions/apistatusesretweet.php index 4832da1823..ee391fdb4a 100644 --- a/actions/apistatusesretweet.php +++ b/actions/apistatusesretweet.php @@ -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.