From bb46c434f0de2a07d48dda187ee08f4764f30728 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Mon, 14 Aug 2023 20:45:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=8E=E3=83=BC=E3=83=88=E3=81=AE?= =?UTF-8?q?=E9=87=8D=E8=A4=87=E5=88=A4=E5=AE=9A=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/dev/usbharu/hideout/service/ap/APNoteService.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/service/ap/APNoteService.kt b/src/main/kotlin/dev/usbharu/hideout/service/ap/APNoteService.kt index 2cf9d080..a0b76dcb 100644 --- a/src/main/kotlin/dev/usbharu/hideout/service/ap/APNoteService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/service/ap/APNoteService.kt @@ -119,8 +119,12 @@ class APNoteServiceImpl( targetActor: String?, url: String ): Note { + if (note.id == null) { + return internalNote(note, targetActor, url) + } + val findByApId = try { - postQueryService.findByApId(url) + postQueryService.findByApId(note.id!!) } catch (_: NoSuchElementException) { return internalNote(note, targetActor, url) } catch (_: IllegalArgumentException) {