From 0dd8988c0850bc9581c4191ea6d56b13721d7832 Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 17 Jan 2020 17:54:07 +0100 Subject: [PATCH] Fix member count including private members in system card --- PluralKit.Core/Stores.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Core/Stores.cs b/PluralKit.Core/Stores.cs index 0e1d32ba..c4f37ed1 100644 --- a/PluralKit.Core/Stores.cs +++ b/PluralKit.Core/Stores.cs @@ -641,7 +641,7 @@ namespace PluralKit { public async Task GetSystemMemberCount(PKSystem system, bool includePrivate) { var query = "select count(*) from members where system = @Id"; - if (includePrivate) query += " and member_privacy = 1"; // 1 = public + if (!includePrivate) query += " and member_privacy = 1"; // 1 = public using (var conn = await _conn.Obtain()) return await conn.ExecuteScalarAsync(query, system);