From cc0779e0e81816eb78dbdd5aa97bc84f4332f013 Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 23 Dec 2021 23:11:55 -0500 Subject: [PATCH] fix: use direct lookup context for pk;member groups --- PluralKit.Bot/Commands/GroupMember.cs | 2 +- PluralKit.Bot/Commands/Groups.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/GroupMember.cs b/PluralKit.Bot/Commands/GroupMember.cs index 5e4786c3..b17f65de 100644 --- a/PluralKit.Bot/Commands/GroupMember.cs +++ b/PluralKit.Bot/Commands/GroupMember.cs @@ -60,7 +60,7 @@ public class GroupMember public async Task ListMemberGroups(Context ctx, PKMember target) { - var pctx = ctx.LookupContextFor(target.System); + var pctx = ctx.DirectLookupContextFor(target.System); var groups = await _repo.GetMemberGroups(target.Id) .Where(g => g.Visibility.CanAccess(pctx)) diff --git a/PluralKit.Bot/Commands/Groups.cs b/PluralKit.Bot/Commands/Groups.cs index 9b6c65ba..4a3aacdf 100644 --- a/PluralKit.Bot/Commands/Groups.cs +++ b/PluralKit.Bot/Commands/Groups.cs @@ -433,6 +433,8 @@ public class Groups // TODO: integrate with the normal "search" system + // TODO: integrate with privacy config settings + var pctx = LookupContext.ByNonOwner; if (ctx.MatchFlag("a", "all")) {