(fix): Pro channel group listing
Testing
URL: https://fix-pro-user-groups.minds.io
- Sign up with a new channel (or use a existing Pro one)
- Create several groups, some open, some closed. Ensure they have an avatar and/or a banner
- Sign up/log in with other channels and join the main channel groups. Create groups with these users as well.
- Log back in onto the main channel and join the other channels' groups.
- Use an administrator channel to enable Pro for the new channel (if new). Set up accordingly.
- Go to main channel's Pro profile (i.e. https://fix-pro-user-groups.minds.io/pro/0xemi)
- Click Groups
- You should see the groups that are public and owned by the main channel sorted by member count
Issues
- Closes front#2306
0/1
thread resolved
added scoped labels
added 3 commits
-
d8e66db2...46ac41b1 - 2 commits from branch
master
- 526c7bb8 - Merge remote-tracking branch 'origin/master' into fix/pro-user-groups
-
d8e66db2...46ac41b1 - 2 commits from branch
changed the description
71 $guids = array_slice($guids, $offset, $limit ?: null); 72 73 if (!$guids) { 74 return new Response(); 75 } 76 77 $user = new User(); 78 $user->guid = $this->userGuid; 79 80 $response = (new Response( 81 $this->entitiesBuilder->get(['guids' => $guids]) 82 ))->filter(function ($group) use ($user) { 83 /** @var Group $group */ 84 return $group && $group->isPublic() && $group->isOwner($user); 85 })->sort(function ($a, $b) { 86 /** @var Group $a */ - Developer
Intentional?
- Developer