fix: ffVisibility

This commit is contained in:
オスカー、 2024-09-08 00:21:23 +09:00
parent ce7602bf30
commit 1d414361fe
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -563,8 +563,8 @@ export class UserEntityService implements OnModuleInit {
pinnedPageId: profile?.pinnedPageId,
pinnedPage: profile?.pinnedPageId ? this.pageEntityService.pack(profile.pinnedPageId, me) : null,
publicReactions: this.isLocalUser(user) ? profile?.publicReactions : false, // https://github.com/misskey-dev/misskey/issues/12964
followersVisibility: profile?.followersVisibility && user.host == null,
followingVisibility: profile?.followingVisibility && user.host == null,
followersVisibility: user.host == null ? profile?.followersVisibility : 'private',
followingVisibility: user.host == null ? profile?.followingVisibility : 'private',
twoFactorEnabled: profile?.twoFactorEnabled,
usePasswordLessLogin: profile?.usePasswordLessLogin,
securityKeys: profile?.twoFactorEnabled