summaryrefslogtreecommitdiff
path: root/packages/backend/src/core
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-06 12:16:49 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-06-09 11:02:36 -0400
commit1d06ac4824d66624a57112747914e6bfe0b73b90 (patch)
treeba84e12e347e699875f4ba33bed5ecdd0ee2c61b /packages/backend/src/core
parentfix single-user relation calculations (diff)
downloadsharkey-1d06ac4824d66624a57112747914e6bfe0b73b90.tar.gz
sharkey-1d06ac4824d66624a57112747914e6bfe0b73b90.tar.bz2
sharkey-1d06ac4824d66624a57112747914e6bfe0b73b90.zip
fix reversed isBlocking / isBlocked in UserEntityService.getRelation
Diffstat (limited to 'packages/backend/src/core')
-rw-r--r--packages/backend/src/core/entities/UserEntityService.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/backend/src/core/entities/UserEntityService.ts b/packages/backend/src/core/entities/UserEntityService.ts
index 5aaa345e75..8ed482af6f 100644
--- a/packages/backend/src/core/entities/UserEntityService.ts
+++ b/packages/backend/src/core/entities/UserEntityService.ts
@@ -219,10 +219,10 @@ export class UserEntityService implements OnModuleInit {
followeeId: me,
},
}),
- this.cacheService.userBlockedCache.fetch(me)
- .then(blockers => blockers.has(target)),
this.cacheService.userBlockingCache.fetch(me)
.then(blockees => blockees.has(target)),
+ this.cacheService.userBlockedCache.fetch(me)
+ .then(blockers => blockers.has(target)),
this.cacheService.userMutingsCache.fetch(me)
.then(mutings => mutings.has(target)),
this.cacheService.renoteMutingsCache.fetch(me)
@@ -325,8 +325,8 @@ export class UserEntityService implements OnModuleInit {
isFollowed: followees.includes(target),
hasPendingFollowRequestFromYou: followersRequests.includes(target),
hasPendingFollowRequestToYou: followeesRequests.includes(target),
- isBlocking: blockers.has(target),
- isBlocked: blockees.has(target),
+ isBlocking: blockees.has(target),
+ isBlocked: blockers.has(target),
isMuted: muters.has(target),
isRenoteMuted: renoteMuters.has(target),
isInstanceMuted: hosts[target] != null && mutedInstances.includes(hosts[target]),