mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add front history pagination; upgrade more store methods
This commit is contained in:
parent
8a689ac0f2
commit
b347d2d557
8 changed files with 178 additions and 109 deletions
|
|
@ -70,10 +70,11 @@ namespace PluralKit.API.Controllers
|
|||
if (!system.MemberListPrivacy.CanAccess(_auth.ContextFor(system)))
|
||||
return StatusCode(StatusCodes.Status403Forbidden, "Unauthorized to view member list.");
|
||||
|
||||
var members = await _data.GetSystemMembers(system);
|
||||
return Ok(members
|
||||
var members = _data.GetSystemMembers(system);
|
||||
return Ok(await members
|
||||
.Where(m => m.MemberPrivacy.CanAccess(_auth.ContextFor(system)))
|
||||
.Select(m => m.ToJson(_auth.ContextFor(system))));
|
||||
.Select(m => m.ToJson(_auth.ContextFor(system)))
|
||||
.ToListAsync());
|
||||
}
|
||||
|
||||
[HttpGet("{hid}/switches")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue