From c4ea243bdc87d17e154a4e8ac2641aeef0a4ba69 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 24 May 2024 20:59:53 -0500 Subject: [PATCH] reactionController: fix the response --- src/controllers/api/reactions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/api/reactions.ts b/src/controllers/api/reactions.ts index f88d36e..7c65672 100644 --- a/src/controllers/api/reactions.ts +++ b/src/controllers/api/reactions.ts @@ -33,7 +33,9 @@ const reactionController: AppController = async (c) => { tags: [['e', id]], }, c); - const status = renderStatus(event, { viewerPubkey: await signer.getPublicKey() }); + await hydrateEvents({ events: [event], store }); + + const status = await renderStatus(event, { viewerPubkey: await signer.getPublicKey() }); return c.json(status); };