mirror of https://github.com/usbharu/Hideout.git
fix: ユーザーごとのAPのurlを修正
This commit is contained in:
parent
39be6647e0
commit
a13a48a66c
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue