[-] Remove path concat

pull/22/head
Azalea 2024-03-06 00:18:28 -05:00
parent 38367279ff
commit 1169ac44b4
1 changed files with 1 additions and 4 deletions

View File

@ -160,10 +160,7 @@ class UserRegistrar(
@API("/me") @API("/me")
@Doc("Get the information of the current logged-in user.", "User information") @Doc("Get the information of the current logged-in user.", "User information")
suspend fun getUser(@RP token: Str) = jwt.auth(token).apply { suspend fun getUser(@RP token: Str) = jwt.auth(token)
if (!profilePicture.isNullOrBlank())
profilePicture = (portraitPath / profilePicture!!).toString()
}
@API("/setting") @API("/setting")
@Doc("Validate and set a user setting field.", "Success message") @Doc("Validate and set a user setting field.", "Success message")