[O] Don't expose all fields

This commit is contained in:
Azalea
2024-03-06 00:35:44 -05:00
parent 94c1974d2f
commit 2a10471e0b
3 changed files with 12 additions and 3 deletions

View File

@@ -76,6 +76,16 @@ class AquaNetUser(
var keychipSessions: MutableList<KeychipSession> = mutableListOf(),
) : Serializable {
val computedName get() = displayName.ifEmpty { username }
val publicFields get() = mapOf(
"username" to username,
"displayName" to displayName,
"country" to country,
"regTime" to regTime,
"profileLocation" to profileLocation,
"profileBio" to profileBio,
"profilePicture" to profilePicture,
)
}
@Repository("AquaNetUserRepository")