X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fatompubfavoritefeed.php;h=837a9da3e96d7784ad3921c20560e6b38773e50f;hb=67ed1ec77e2d9c3a9486d0734294a8541dc4334a;hp=634bb224573dfc7b5b9fce71eeddb023f35bde8c;hpb=19b965d99188fde59cdd39b668df8951bc0f180c;p=quix0rs-gnu-social.git diff --git a/actions/atompubfavoritefeed.php b/actions/atompubfavoritefeed.php index 634bb22457..837a9da3e9 100644 --- a/actions/atompubfavoritefeed.php +++ b/actions/atompubfavoritefeed.php @@ -34,8 +34,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apiauth.php'; - /** * Feed of ActivityStreams 'favorite' actions * @@ -62,7 +60,7 @@ class AtompubfavoritefeedAction extends ApiAuthAction { parent::prepare($argarray); - $this->_profile = Profile::staticGet('id', $this->trimmed('profile')); + $this->_profile = Profile::getKV('id', $this->trimmed('profile')); if (empty($this->_profile)) { // TRANS: Client exception thrown when requesting a favorite feed for a non-existing profile. @@ -251,7 +249,7 @@ class AtompubfavoritefeedAction extends ApiAuthAction return; } - $notice = Notice::staticGet('uri', $note->id); + $notice = Notice::getKV('uri', $note->id); if (empty($notice)) { // XXX: import from listed URL or something @@ -362,7 +360,7 @@ class AtompubfavoritefeedAction extends ApiAuthAction */ function notify($fave, $notice, $user) { - $other = User::staticGet('id', $notice->profile_id); + $other = User::getKV('id', $notice->profile_id); if ($other && $other->id != $user->id) { if ($other->email && $other->emailnotifyfav) { mail_notify_fave($other, $user, $notice);