mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
feat: rework group list into member list
This commit is contained in:
parent
0afe031284
commit
f3869dbcbe
21 changed files with 374 additions and 126 deletions
|
|
@ -12,10 +12,10 @@ public class SystemList
|
|||
ctx.CheckSystemPrivacy(target.Id, target.MemberListPrivacy);
|
||||
|
||||
// explanation of privacy lookup here:
|
||||
// - ParseMemberListOptions checks list access privacy and sets the privacy filter (which members show up in list)
|
||||
// - ParseListOptions checks list access privacy and sets the privacy filter (which members show up in list)
|
||||
// - RenderMemberList checks the indivual privacy for each member (NameFor, etc)
|
||||
// the own system is always allowed to look up their list
|
||||
var opts = ctx.ParseMemberListOptions(ctx.DirectLookupContextFor(target.Id));
|
||||
var opts = ctx.ParseListOptions(ctx.DirectLookupContextFor(target.Id));
|
||||
await ctx.RenderMemberList(
|
||||
ctx.LookupContextFor(target.Id),
|
||||
target.Id,
|
||||
|
|
@ -25,7 +25,7 @@ public class SystemList
|
|||
);
|
||||
}
|
||||
|
||||
private string GetEmbedTitle(PKSystem target, MemberListOptions opts)
|
||||
private string GetEmbedTitle(PKSystem target, ListOptions opts)
|
||||
{
|
||||
var title = new StringBuilder("Members of ");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue