fix(UserEntityService): remote user ffVisibility is always false

This commit is contained in:
オスカー、 2024-09-07 20:20:24 +09:00
parent a87776f41e
commit 162812d857
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,
followingVisibility: profile?.followingVisibility,
followersVisibility: profile?.followersVisibility && user.host == null,
followingVisibility: profile?.followingVisibility && user.host == null,
twoFactorEnabled: profile?.twoFactorEnabled,
usePasswordLessLogin: profile?.usePasswordLessLogin,
securityKeys: profile?.twoFactorEnabled