From d7bd112b37f573790bcde2d7208960b190e96c48 Mon Sep 17 00:00:00 2001 From: Marie Date: Thu, 30 May 2024 13:03:54 +0000 Subject: [PATCH] fix incorrect variable name --- packages/backend/src/server/api/mastodon/converters.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/mastodon/converters.ts b/packages/backend/src/server/api/mastodon/converters.ts index 0918fc74f9..ea219b933d 100644 --- a/packages/backend/src/server/api/mastodon/converters.ts +++ b/packages/backend/src/server/api/mastodon/converters.ts @@ -146,8 +146,8 @@ export class MastoConverters { display_name: user.name ?? user.username, locked: user.isLocked, created_at: this.idService.parse(user.id).date.toISOString(), - followers_count: profile?.ffVisibility === 'public' ? user.followersCount : 0, - following_count: profile?.ffVisibility === 'public' ? user.followingCount : 0, + followers_count: profile?.followersVisibility === 'public' ? user.followersCount : 0, + following_count: profile?.followingVisibility === 'public' ? user.followingCount : 0, statuses_count: user.notesCount, note: profile?.description ?? '', url: user.uri ?? acctUrl,