]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/atompubshowmembership.php
OAuth widgets separated into their own files
[quix0rs-gnu-social.git] / actions / atompubshowmembership.php
index 1e9d66c56b310990566db4f37bcfce240da71f89..16196917698ac5c8e2706929477329dab0de6064 100644 (file)
@@ -67,7 +67,7 @@ class AtompubshowmembershipAction extends AtompubAction
 
         $this->_membership = Group_member::pkeyGet($kv);
 
-        if (!$this->_profile->isMembmer($this->_group)) {
+        if (!$this->_membership instanceof Group_member) {
             // TRANS: Client exception thrown when trying to show membership of a non-subscribed group
             throw new ClientException(_('Not a member.'), 404);
         }