fix showing follower/following count
Some checks failed
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/lint-backend Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline failed
ci/woodpecker/push/test Pipeline failed
Some checks failed
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/lint-backend Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline failed
ci/woodpecker/push/test Pipeline failed
This commit is contained in:
parent
d55f8742b8
commit
f883d2e31b
1 changed files with 2 additions and 2 deletions
|
@ -302,10 +302,10 @@ export const UserRepository = db.getRepository(User).extend({
|
|||
|
||||
const ffVisible = await this.areFollowersVisibleTo(user, me);
|
||||
|
||||
const followingCount = opts.detail ? null :
|
||||
const followingCount = !opts.detail ? null :
|
||||
ffVisible ? user.followingCount : null;
|
||||
|
||||
const followersCount = opts.detail ? null :
|
||||
const followersCount = !opts.detail ? null :
|
||||
ffVisible ? user.followersCount : null;
|
||||
|
||||
const packed = {
|
||||
|
|
Loading…
Reference in a new issue