forked from FoundKeyGang/FoundKey
fix showing follower/following count
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