diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/api/internal/v1/Posts.kt b/src/main/kotlin/dev/usbharu/hideout/routing/api/internal/v1/Posts.kt index eae2a3e6..a34572fd 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/api/internal/v1/Posts.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/api/internal/v1/Posts.kt @@ -50,6 +50,7 @@ fun Route.posts(postApiService: IPostApiService, reactionService: IReactionServi } reactionService.sendReaction(reaction.reaction ?: "❤", userId, postId) + call.respond(HttpStatusCode.NoContent) } delete { val jwtPrincipal = call.principal() ?: throw IllegalStateException("no principal") @@ -57,6 +58,7 @@ fun Route.posts(postApiService: IPostApiService, reactionService: IReactionServi val postId = call.parameters["id"]?.toLong() ?: throw ParameterNotExistException("Parameter(id='postsId') does not exist.") reactionService.removeReaction(userId, postId) + call.respond(HttpStatusCode.NoContent) } } }