[backend/federation] Fix typo in calculation of nodeinfo active users

This commit is contained in:
Laura Hausmann 2024-02-20 20:17:53 +01:00
parent 0f9a51d8f2
commit 5272fbc13e
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -29,7 +29,7 @@ public class NodeInfoController(IOptions<Config.InstanceSection> config, Databas
var activeMonth = var activeMonth =
await db.Users.LongCountAsync(p => p.Host == null && await db.Users.LongCountAsync(p => p.Host == null &&
!Constants.SystemUsers.Contains(p.UsernameLower) && !Constants.SystemUsers.Contains(p.UsernameLower) &&
p.LastActiveDate > cutoffHalfYear); p.LastActiveDate > cutoffMonth);
var activeHalfYear = var activeHalfYear =
await db.Users.LongCountAsync(p => p.Host == null && await db.Users.LongCountAsync(p => p.Host == null &&
!Constants.SystemUsers.Contains(p.UsernameLower) && !Constants.SystemUsers.Contains(p.UsernameLower) &&