From 88fd245d3f8d180ca5552f5d1ea88d8bf94a32df Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sat, 8 Apr 2023 16:39:47 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=AD=E3=82=B0=E3=82=92=E8=A9=B3?= =?UTF-8?q?=E7=B4=B0=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/dev/usbharu/hideout/plugins/Monitoring.kt | 1 - .../dev/usbharu/hideout/routing/activitypub/UserRouting.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/plugins/Monitoring.kt b/src/main/kotlin/dev/usbharu/hideout/plugins/Monitoring.kt index 861880ee..3ce065b7 100644 --- a/src/main/kotlin/dev/usbharu/hideout/plugins/Monitoring.kt +++ b/src/main/kotlin/dev/usbharu/hideout/plugins/Monitoring.kt @@ -8,6 +8,5 @@ import io.ktor.server.application.* fun Application.configureMonitoring() { install(CallLogging) { level = Level.INFO - filter { call -> call.request.path().startsWith("/") } } } diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/activitypub/UserRouting.kt b/src/main/kotlin/dev/usbharu/hideout/routing/activitypub/UserRouting.kt index 37ac3dc4..03583fbf 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/activitypub/UserRouting.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/activitypub/UserRouting.kt @@ -18,7 +18,7 @@ fun Routing.usersAP(activityPubUserService: ActivityPubUserService) { call.parameters["name"] ?: throw ParameterNotExistException("Parameter(name='name') does not exist.") val person = activityPubUserService.getPersonByName(name) call.response.header("Content-Type", ContentType.Application.Activity.toString()) - call.respond(HttpStatusCode.OK, Config.configData.objectMapper.writeValueAsString(person)) + return@handle call.respond(HttpStatusCode.OK, Config.configData.objectMapper.writeValueAsString(person)) } } }