summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/federation/stats.ts
diff options
context:
space:
mode:
authorHazel K <acomputerdog@gmail.com>2024-08-01 08:24:50 -0400
committerHazel K <acomputerdog@gmail.com>2024-08-01 08:24:50 -0400
commit858ba188768017764c61c4a5591bdf2524a850e7 (patch)
treec6ad5113d4a48948d36a79e448d9108d797cd141 /packages/backend/src/server/api/endpoints/federation/stats.ts
parentmerge: preserve `ti-fw` classes for icons - fixes #580 (!575) (diff)
downloadsharkey-858ba188768017764c61c4a5591bdf2524a850e7.tar.gz
sharkey-858ba188768017764c61c4a5591bdf2524a850e7.tar.bz2
sharkey-858ba188768017764c61c4a5591bdf2524a850e7.zip
fix: pass current user into `InstanceEntityService.packMany`
Diffstat (limited to 'packages/backend/src/server/api/endpoints/federation/stats.ts')
-rw-r--r--packages/backend/src/server/api/endpoints/federation/stats.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/endpoints/federation/stats.ts b/packages/backend/src/server/api/endpoints/federation/stats.ts
index bac54970ab..69900bff9a 100644
--- a/packages/backend/src/server/api/endpoints/federation/stats.ts
+++ b/packages/backend/src/server/api/endpoints/federation/stats.ts
@@ -107,9 +107,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const gotPubCount = topPubInstances.map(x => x.followingCount).reduce((a, b) => a + b, 0);
return await awaitAll({
- topSubInstances: this.instanceEntityService.packMany(topSubInstances),
+ topSubInstances: this.instanceEntityService.packMany(topSubInstances, me),
otherFollowersCount: Math.max(0, allSubCount - gotSubCount),
- topPubInstances: this.instanceEntityService.packMany(topPubInstances),
+ topPubInstances: this.instanceEntityService.packMany(topPubInstances, me),
otherFollowingCount: Math.max(0, allPubCount - gotPubCount),
});
});