]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Return Profile objects from getGroups in GroupdirectoryAction
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Jan 2016 11:35:52 +0000 (12:35 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Jan 2016 11:35:52 +0000 (12:35 +0100)
plugins/Directory/actions/groupdirectory.php

index 32e5ce50b4cdeb483831da0d9c3b150f4d7cfad4..124ccffe7543d0ede8b688b54f130066e01a1dc1 100644 (file)
@@ -323,12 +323,14 @@ class GroupdirectoryAction extends ManagedAction
         $offset = ($this->page-1) * PROFILES_PER_PAGE;
         $limit  = PROFILES_PER_PAGE + 1;
 
+        $group->selectAdd();
+        $group->selectAdd('profile_id');
         $group->orderBy($order);
         $group->limit($offset, $limit);
 
         $group->find();
 
-        return $group;
+        return Profile::multiGet('id', $group->fetchAll('profile_id'));
     }
 
     /**