From fec59ab62201441ec49738ece505985daf38fa0b Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:50:27 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=82=AF=E3=82=A8=E3=83=AA=E3=83=91?= =?UTF-8?q?=E3=83=A9=E3=83=A1=E3=83=BC=E3=82=BF=E3=81=AE=E3=83=91=E3=83=A9?= =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=82=BF=E5=90=8D=E3=81=AE=E5=BD=A2=E5=BC=8F?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #577 --- .../core/interfaces/web/timeline/TimelineController.kt | 6 +++--- .../hideout/core/interfaces/web/user/UserController.kt | 6 +++--- .../src/main/resources/templates/fragments-timeline.html | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/interfaces/web/timeline/TimelineController.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/interfaces/web/timeline/TimelineController.kt index 52e83f5d..c80b999b 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/interfaces/web/timeline/TimelineController.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/interfaces/web/timeline/TimelineController.kt @@ -22,9 +22,9 @@ class TimelineController( @GetMapping("/home") suspend fun homeTimeline( model: Model, - @RequestParam sinceId: String?, - @RequestParam maxId: String?, - @RequestParam minId: String? + @RequestParam("since_id") sinceId: String?, + @RequestParam("max_id") maxId: String?, + @RequestParam("min_id") minId: String? ): String { val principal = springSecurityFormLoginPrincipalContextHolder.getPrincipal() val userDetail = transaction.transaction { diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/interfaces/web/user/UserController.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/interfaces/web/user/UserController.kt index a9a8979e..b0eea320 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/interfaces/web/user/UserController.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/interfaces/web/user/UserController.kt @@ -25,9 +25,9 @@ class UserController( @GetMapping("/users/{name}") suspend fun userById( @PathVariable name: String, - @RequestParam minId: Long?, - @RequestParam maxId: Long?, - @RequestParam sinceId: Long?, + @RequestParam("min_id") minId: Long?, + @RequestParam("max_id") maxId: Long?, + @RequestParam("since_id") sinceId: Long?, model: Model ): String { val principal = springSecurityFormLoginPrincipalContextHolder.getPrincipal() diff --git a/hideout-core/src/main/resources/templates/fragments-timeline.html b/hideout-core/src/main/resources/templates/fragments-timeline.html index f08d6715..ef29250c 100644 --- a/hideout-core/src/main/resources/templates/fragments-timeline.html +++ b/hideout-core/src/main/resources/templates/fragments-timeline.html @@ -8,7 +8,7 @@
- Show more + Show more
@@ -16,7 +16,7 @@
- Show more + Show more