From 1d37106b273da1bfef85fdab6b2959c21c1510ca Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 22 May 2024 12:08:20 -0500 Subject: [PATCH] unreblogStatusController: repostedEvent -> repostEvent --- src/controllers/api/statuses.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/api/statuses.ts b/src/controllers/api/statuses.ts index d1df002..8a558e5 100644 --- a/src/controllers/api/statuses.ts +++ b/src/controllers/api/statuses.ts @@ -296,17 +296,17 @@ const unreblogStatusController: AppController = async (c) => { return c.json({ error: 'Record not found' }, 404); } - const [repostedEvent] = await store.query( + const [repostEvent] = await store.query( [{ kinds: [6], authors: [pubkey], '#e': [event.id], limit: 1 }], ); - if (!repostedEvent) { + if (!repostEvent) { return c.json({ error: 'Record not found' }, 404); } await createEvent({ kind: 5, - tags: [['e', repostedEvent.id]], + tags: [['e', repostEvent.id]], }, c); return c.json(await renderStatus(event, { viewerPubkey: pubkey }));