diff --git a/src/main/kotlin/dev/usbharu/hideout/service/ap/job/ApReactionJobServiceImpl.kt b/src/main/kotlin/dev/usbharu/hideout/service/ap/job/ApReactionJobServiceImpl.kt index 45736662..58d85ec3 100644 --- a/src/main/kotlin/dev/usbharu/hideout/service/ap/job/ApReactionJobServiceImpl.kt +++ b/src/main/kotlin/dev/usbharu/hideout/service/ap/job/ApReactionJobServiceImpl.kt @@ -47,6 +47,7 @@ class ApReactionJobServiceImpl( val inbox = props[DeliverRemoveReactionJob.inbox] val actor = props[DeliverRemoveReactionJob.actor] val like = objectMapper.readValue(props[DeliverRemoveReactionJob.like]) + val id = props[DeliverRemoveReactionJob.id] val signer = userQueryService.findByUrl(actor) @@ -56,7 +57,7 @@ class ApReactionJobServiceImpl( name = "Undo Reaction", actor = actor, `object` = like, - id = "${applicationConfig.url}/undo/note/${like.id}", + id = "${applicationConfig.url}/undo/note/$id", published = Instant.now() ), signer