mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-18 11:32:56 +09:00
Update stats.ts
This commit is contained in:
parent
46af0e12b0
commit
e117be79e8
@ -755,9 +755,9 @@ class FollowingStats extends Stats<FollowingLog> {
|
|||||||
remoteFollowersCount
|
remoteFollowersCount
|
||||||
] = init ? await Promise.all([
|
] = init ? await Promise.all([
|
||||||
Following.count({ followerId: group, '_followee.host': null }),
|
Following.count({ followerId: group, '_followee.host': null }),
|
||||||
Following.count({ followeeId: group, '_user.host': null }),
|
Following.count({ followeeId: group, '_follower.host': null }),
|
||||||
Following.count({ followerId: group, '_followee.host': { $ne: null } }),
|
Following.count({ followerId: group, '_followee.host': { $ne: null } }),
|
||||||
Following.count({ followeeId: group, '_user.host': { $ne: null } })
|
Following.count({ followeeId: group, '_follower.host': { $ne: null } })
|
||||||
]) : [
|
]) : [
|
||||||
latestLog ? latestLog.local.followings.total : 0,
|
latestLog ? latestLog.local.followings.total : 0,
|
||||||
latestLog ? latestLog.local.followers.total : 0,
|
latestLog ? latestLog.local.followers.total : 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user