mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 04:54:32 +00:00
fix reversed isBlocking / isBlocked in UserEntityService.getRelation
This commit is contained in:
parent
20cc736457
commit
1d06ac4824
1 changed files with 4 additions and 4 deletions
|
@ -219,10 +219,10 @@ export class UserEntityService implements OnModuleInit {
|
||||||
followeeId: me,
|
followeeId: me,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
this.cacheService.userBlockedCache.fetch(me)
|
|
||||||
.then(blockers => blockers.has(target)),
|
|
||||||
this.cacheService.userBlockingCache.fetch(me)
|
this.cacheService.userBlockingCache.fetch(me)
|
||||||
.then(blockees => blockees.has(target)),
|
.then(blockees => blockees.has(target)),
|
||||||
|
this.cacheService.userBlockedCache.fetch(me)
|
||||||
|
.then(blockers => blockers.has(target)),
|
||||||
this.cacheService.userMutingsCache.fetch(me)
|
this.cacheService.userMutingsCache.fetch(me)
|
||||||
.then(mutings => mutings.has(target)),
|
.then(mutings => mutings.has(target)),
|
||||||
this.cacheService.renoteMutingsCache.fetch(me)
|
this.cacheService.renoteMutingsCache.fetch(me)
|
||||||
|
@ -325,8 +325,8 @@ export class UserEntityService implements OnModuleInit {
|
||||||
isFollowed: followees.includes(target),
|
isFollowed: followees.includes(target),
|
||||||
hasPendingFollowRequestFromYou: followersRequests.includes(target),
|
hasPendingFollowRequestFromYou: followersRequests.includes(target),
|
||||||
hasPendingFollowRequestToYou: followeesRequests.includes(target),
|
hasPendingFollowRequestToYou: followeesRequests.includes(target),
|
||||||
isBlocking: blockers.has(target),
|
isBlocking: blockees.has(target),
|
||||||
isBlocked: blockees.has(target),
|
isBlocked: blockers.has(target),
|
||||||
isMuted: muters.has(target),
|
isMuted: muters.has(target),
|
||||||
isRenoteMuted: renoteMuters.has(target),
|
isRenoteMuted: renoteMuters.has(target),
|
||||||
isInstanceMuted: hosts[target] != null && mutedInstances.includes(hosts[target]),
|
isInstanceMuted: hosts[target] != null && mutedInstances.includes(hosts[target]),
|
||||||
|
|
Loading…
Add table
Reference in a new issue