fix: show group member count in group card, rather than system member count

This commit is contained in:
spiral 2021-12-23 23:16:29 -05:00
parent cc0779e0e8
commit 391d6de6e4
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -224,7 +224,7 @@ public class EmbedService
public async Task<Embed> CreateGroupEmbed(Context ctx, PKSystem system, PKGroup target)
{
var pctx = ctx.LookupContextFor(system.Id);
var memberCount = await _repo.GetSystemMemberCount(system.Id, pctx == LookupContext.ByOwner ? null : PrivacyLevel.Public);
var memberCount = await _repo.GetGroupMemberCount(target.Id, pctx == LookupContext.ByOwner ? null : PrivacyLevel.Public);
var nameField = target.Name;
if (system.Name != null)