[backend/federation] Fix typo in calculation of nodeinfo active users
This commit is contained in:
parent
0f9a51d8f2
commit
5272fbc13e
1 changed files with 1 additions and 1 deletions
|
@ -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) &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue