mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix member count including private members in system card
This commit is contained in:
parent
991c00a4e6
commit
0dd8988c08
1 changed files with 1 additions and 1 deletions
|
|
@ -641,7 +641,7 @@ namespace PluralKit {
|
|||
public async Task<int> 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<int>(query, system);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue