From 6de06a9bde39ef841045c1ad9ae803314cd35f98 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sat, 1 Apr 2023 10:25:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20icon=E7=94=BB=E5=83=8F=E3=81=AE=E3=83=91?= =?UTF-8?q?=E3=82=B9=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/dev/usbharu/hideout/routing/UserRouting.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/UserRouting.kt b/src/main/kotlin/dev/usbharu/hideout/routing/UserRouting.kt index 661ebc4e..d39c3c7f 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/UserRouting.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/UserRouting.kt @@ -67,7 +67,7 @@ fun Application.user(userService: UserService, activityPubUserService: ActivityP } } get("/{name}/icon.png"){ - call.respondBytes(Application::class.java.classLoader.getResourceAsStream("icon.png").readAllBytes()) + call.respondBytes(Application::class.java.classLoader.getResourceAsStream("/icon.png").readAllBytes(),ContentType.Image.PNG) } }