X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fatompubmembershipfeed.php;h=e5ca8b0a5a3251d7241fe0f2122a41c100cecffb;hb=cc34bb48c7243f78e198ad4d8c1806d5fe886a81;hp=37e4a386a20cfb27e4f4ec6f85f4ced8f55ed3f4;hpb=cb183359e23ae7a5cfb483fa06c6c4b7a8b05fff;p=quix0rs-gnu-social.git diff --git a/actions/atompubmembershipfeed.php b/actions/atompubmembershipfeed.php index 37e4a386a2..e5ca8b0a5a 100644 --- a/actions/atompubmembershipfeed.php +++ b/actions/atompubmembershipfeed.php @@ -34,8 +34,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apiauth.php'; - /** * Feed of group memberships for a user, in ActivityStreams format * @@ -64,7 +62,7 @@ class AtompubmembershipfeedAction extends ApiAuthAction $profileId = $this->trimmed('profile'); - $this->_profile = Profile::staticGet('id', $profileId); + $this->_profile = Profile::getKV('id', $profileId); if (empty($this->_profile)) { // TRANS: Client exception. @@ -250,7 +248,7 @@ class AtompubmembershipfeedAction extends ApiAuthAction return; } - $group = User_group::staticGet('uri', $groupObj->id); + $group = User_group::getKV('uri', $groupObj->id); if (empty($group)) { // XXX: import from listed URL or something