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

This commit is contained in:
usbharu 2023-03-24 16:16:30 +09:00
parent 39be6647e0
commit a13a48a66c
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
2 changed files with 1 additions and 2 deletions
src/main/kotlin/dev/usbharu/hideout

View File

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

View File

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