fix: ユーザーごとのAPのurlを修正

This commit is contained in:
usbharu 2023-03-24 16:16:30 +09:00
parent e44d0b545f
commit d77d5c77b0
2 changed files with 1 additions and 2 deletions

View File

@ -45,7 +45,6 @@ fun Application.register(userAuthService: IUserAuthService) {
val hash = userAuthService.hash(password)
userAuthService.registerAccount(username,hash)
call.sessions.set(UserSession(username))
// call.respondRedirect("/login")
call.respondRedirect("/users/$username")
}

View File

@ -7,7 +7,7 @@ import dev.usbharu.hideout.config.Config
class ActivityPubUserService(private val userService: UserService) {
suspend fun generateUserModel(name:String):Person{
val userEntity = userService.findByName(name)
val userUrl = "${Config.configData.hostname}/$name"
val userUrl = "${Config.configData.hostname}/users/$name"
return Person(
emptyList(),
"Icon",