mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 04:26:58 +00:00
fix single-user relation calculations
This commit is contained in:
parent
223cdc9ea9
commit
20cc736457
1 changed files with 4 additions and 4 deletions
|
@ -220,13 +220,13 @@ export class UserEntityService implements OnModuleInit {
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
this.cacheService.userBlockedCache.fetch(me)
|
this.cacheService.userBlockedCache.fetch(me)
|
||||||
.then(blockers => blockers.size > 0),
|
.then(blockers => blockers.has(target)),
|
||||||
this.cacheService.userBlockingCache.fetch(me)
|
this.cacheService.userBlockingCache.fetch(me)
|
||||||
.then(blockees => blockees.size > 0),
|
.then(blockees => blockees.has(target)),
|
||||||
this.cacheService.userMutingsCache.fetch(me)
|
this.cacheService.userMutingsCache.fetch(me)
|
||||||
.then(mutings => mutings.size > 0),
|
.then(mutings => mutings.has(target)),
|
||||||
this.cacheService.renoteMutingsCache.fetch(me)
|
this.cacheService.renoteMutingsCache.fetch(me)
|
||||||
.then(mutings => mutings.size > 0),
|
.then(mutings => mutings.has(target)),
|
||||||
this.cacheService.userByIdCache.fetch(target, () => this.usersRepository.findOneByOrFail({ id: target }))
|
this.cacheService.userByIdCache.fetch(target, () => this.usersRepository.findOneByOrFail({ id: target }))
|
||||||
.then(user => user.host),
|
.then(user => user.host),
|
||||||
this.userMemosRepository.createQueryBuilder('m')
|
this.userMemosRepository.createQueryBuilder('m')
|
||||||
|
|
Loading…
Add table
Reference in a new issue