mirror of https://github.com/usbharu/Hideout.git
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
14149001c9
commit
a0b434b023
|
@ -65,20 +65,20 @@ constructor(
|
|||
|
||||
override fun toString(): String {
|
||||
return "Person(" +
|
||||
"name='$name', " +
|
||||
"id='$id', " +
|
||||
"preferredUsername=$preferredUsername, " +
|
||||
"summary=$summary, " +
|
||||
"inbox='$inbox', " +
|
||||
"outbox='$outbox', " +
|
||||
"url='$url', " +
|
||||
"icon=$icon, " +
|
||||
"publicKey=$publicKey, " +
|
||||
"endpoints=$endpoints, " +
|
||||
"followers=$followers, " +
|
||||
"following=$following, " +
|
||||
"manuallyApprovesFollowers=$manuallyApprovesFollowers" +
|
||||
")" +
|
||||
" ${super.toString()}"
|
||||
"name='$name', " +
|
||||
"id='$id', " +
|
||||
"preferredUsername=$preferredUsername, " +
|
||||
"summary=$summary, " +
|
||||
"inbox='$inbox', " +
|
||||
"outbox='$outbox', " +
|
||||
"url='$url', " +
|
||||
"icon=$icon, " +
|
||||
"publicKey=$publicKey, " +
|
||||
"endpoints=$endpoints, " +
|
||||
"followers=$followers, " +
|
||||
"following=$following, " +
|
||||
"manuallyApprovesFollowers=$manuallyApprovesFollowers" +
|
||||
")" +
|
||||
" ${super.toString()}"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ data class Actor private constructor(
|
|||
val locked: Boolean
|
||||
) {
|
||||
|
||||
|
||||
@Component
|
||||
class UserBuilder(private val characterLimit: CharacterLimit, private val applicationConfig: ApplicationConfig) {
|
||||
|
||||
|
@ -147,24 +146,22 @@ data class Actor private constructor(
|
|||
|
||||
override fun toString(): String {
|
||||
return "Actor(" +
|
||||
"id=$id, " +
|
||||
"name='$name', " +
|
||||
"domain='$domain', " +
|
||||
"screenName='$screenName', " +
|
||||
"description='$description', " +
|
||||
"inbox='$inbox', " +
|
||||
"outbox='$outbox', " +
|
||||
"url='$url', " +
|
||||
"publicKey='$publicKey', " +
|
||||
"privateKey=$privateKey, " +
|
||||
"createdAt=$createdAt, " +
|
||||
"keyId='$keyId', " +
|
||||
"followers=$followers, " +
|
||||
"following=$following, " +
|
||||
"instance=$instance, " +
|
||||
"locked=$locked" +
|
||||
")"
|
||||
"id=$id, " +
|
||||
"name='$name', " +
|
||||
"domain='$domain', " +
|
||||
"screenName='$screenName', " +
|
||||
"description='$description', " +
|
||||
"inbox='$inbox', " +
|
||||
"outbox='$outbox', " +
|
||||
"url='$url', " +
|
||||
"publicKey='$publicKey', " +
|
||||
"privateKey=$privateKey, " +
|
||||
"createdAt=$createdAt, " +
|
||||
"keyId='$keyId', " +
|
||||
"followers=$followers, " +
|
||||
"following=$following, " +
|
||||
"instance=$instance, " +
|
||||
"locked=$locked" +
|
||||
")"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -45,10 +45,8 @@ class UserDetailRepositoryImpl : UserDetailRepository {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
object UserDetails : LongIdTable("user_details") {
|
||||
val actorId = long("actor_id").references(Actors.id)
|
||||
val password = varchar("password", 255)
|
||||
|
|
|
@ -172,7 +172,6 @@ class AccountApiServiceImpl(
|
|||
|
||||
override suspend fun updateProfile(userid: Long, updateCredentials: UpdateCredentials?): Account =
|
||||
transaction.transaction {
|
||||
|
||||
val avatarMedia = if (updateCredentials?.avatar != null) {
|
||||
mediaService.uploadLocalMedia(
|
||||
MediaRequest(
|
||||
|
@ -199,7 +198,6 @@ class AccountApiServiceImpl(
|
|||
null
|
||||
}
|
||||
|
||||
|
||||
val account = accountService.findById(userid)
|
||||
|
||||
val updateUserDto = UpdateUserDto(
|
||||
|
|
Loading…
Reference in New Issue