]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/atompubshowfavorite.php
Updating Janrain OpenID auth library
[quix0rs-gnu-social.git] / actions / atompubshowfavorite.php
index 1727e0c3cf9499e7935ba61fbed13db0cda0c88a..436e88e6939e548f3e7b9ce0dd1a00bfc4b48279 100644 (file)
@@ -34,8 +34,6 @@ if (!defined('STATUSNET')) {
     exit(1);
 }
 
-require_once INSTALLDIR . '/lib/apiauth.php';
-
 /**
  * Show a single favorite in Atom Activity Streams format.
  *
@@ -68,14 +66,14 @@ class AtompubshowfavoriteAction extends ApiAuthAction
         $profileId = $this->trimmed('profile');
         $noticeId  = $this->trimmed('notice');
 
-        $this->_profile = Profile::staticGet('id', $profileId);
+        $this->_profile = Profile::getKV('id', $profileId);
 
         if (empty($this->_profile)) {
             // TRANS: Client exception.
             throw new ClientException(_('No such profile.'), 404);
         }
 
-        $this->_notice = Notice::staticGet('id', $noticeId);
+        $this->_notice = Notice::getKV('id', $noticeId);
 
         if (empty($this->_notice)) {
             // TRANS: Client exception thrown when referencing a non-existing notice.