summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/AntennaService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-07 21:27:25 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-06-09 11:02:36 -0400
commit853b548a4369051b8fdaabbda80d7d6ed52adb77 (patch)
tree7aec31303f244cbdec4aee82fdbc0b0e90c33a83 /packages/backend/src/core/AntennaService.ts
parentmove QuantumKVCache to a separate file (diff)
downloadsharkey-853b548a4369051b8fdaabbda80d7d6ed52adb77.tar.gz
sharkey-853b548a4369051b8fdaabbda80d7d6ed52adb77.tar.bz2
sharkey-853b548a4369051b8fdaabbda80d7d6ed52adb77.zip
re-type userFollowingsCache to match the others
Diffstat (limited to 'packages/backend/src/core/AntennaService.ts')
-rw-r--r--packages/backend/src/core/AntennaService.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/core/AntennaService.ts b/packages/backend/src/core/AntennaService.ts
index cf696e3599..667df57943 100644
--- a/packages/backend/src/core/AntennaService.ts
+++ b/packages/backend/src/core/AntennaService.ts
@@ -130,7 +130,8 @@ export class AntennaService implements OnApplicationShutdown {
}
if (note.visibility === 'followers') {
- const isFollowing = Object.hasOwn(await this.cacheService.userFollowingsCache.fetch(antenna.userId), note.userId);
+ const followings = await this.cacheService.userFollowingsCache.fetch(antenna.userId);
+ const isFollowing = followings.has(note.userId);
if (!isFollowing && antenna.userId !== note.userId) return false;
}