fix showing follower/following count

This commit is contained in:
Johann150 2023-05-27 20:42:10 +02:00
parent d55f8742b8
commit f883d2e31b
Signed by untrusted user: Johann150
GPG Key ID: 9EE6577A2A06F8F1
1 changed files with 2 additions and 2 deletions

View File

@ -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 = {