X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fatompubshowmembership.php;h=e8a7816cf1c672aeb03d1c4d140ae7dfc3f3a27c;hb=d4e76bc25b5bdcb47d8d267fcb7b9f3b9f0b9585;hp=8bf62912f5268eb8fd3891d859d5fb7dd8c12f0b;hpb=541dfa04fe98d0995679d44fdc5d0c5dc8ceca77;p=quix0rs-gnu-social.git diff --git a/actions/atompubshowmembership.php b/actions/atompubshowmembership.php index 8bf62912f5..e8a7816cf1 100644 --- a/actions/atompubshowmembership.php +++ b/actions/atompubshowmembership.php @@ -34,8 +34,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apiauth.php'; - /** * Show (or delete) a single membership event as an ActivityStreams entry * @@ -65,7 +63,7 @@ class AtompubshowmembershipAction 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. @@ -74,7 +72,7 @@ class AtompubshowmembershipAction extends ApiAuthAction $groupId = $this->trimmed('group'); - $this->_group = User_group::staticGet('id', $groupId); + $this->_group = User_group::getKV('id', $groupId); if (empty($this->_group)) { // TRANS: Client exception thrown when referencing a non-existing group. @@ -165,7 +163,7 @@ class AtompubshowmembershipAction extends ApiAuthAction * * @return boolean is read only action? */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { if ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD') {