]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apilistmemberships.php
Merge branch 'openid-plugin' into 'nightly'
[quix0rs-gnu-social.git] / actions / apilistmemberships.php
index d897853444883b2e2ce2406ff71effc5713a950f..bf7f0e84d81a4e72a288f448ab06de45d95adfde 100644 (file)
@@ -57,7 +57,7 @@ class ApiListMembershipsAction extends ApiBareAuthAction
      * @return boolean success flag
      *
      */
-    protected function prepare($args)
+    protected function prepare(array $args=array())
     {
         parent::prepare($args);
 
@@ -115,11 +115,10 @@ class ApiListMembershipsAction extends ApiBareAuthAction
 
     function getLists()
     {
-        $profile = $this->target;
-        $fn = array($profile, 'getOtherTags');
+        $fn = array($this->target, 'getOtherTags');
 
         # 20 lists
         list($this->lists, $this->next_cursor, $this->prev_cursor) =
-                Profile_list::getAtCursor($fn, array($this->auth_user), $this->cursor, 20);
+                Profile_list::getAtCursor($fn, array($this->scoped), $this->cursor, 20);
     }
 }