From 9f24f35a2159b8b8285711f6d203c85bad2eccc9 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Tue, 9 Apr 2024 20:32:27 -0300 Subject: [PATCH] refactor: cast pubkey as string --- src/controllers/api/statuses.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/statuses.ts b/src/controllers/api/statuses.ts index 89b6c3c..b8873a9 100644 --- a/src/controllers/api/statuses.ts +++ b/src/controllers/api/statuses.ts @@ -229,7 +229,7 @@ const reblogStatusController: AppController = async (c) => { /** https://docs.joinmastodon.org/methods/statuses/#unreblog */ const unreblogStatusController: AppController = async (c) => { const eventId = c.req.param('id'); - const pubkey = c.get('pubkey')!; + const pubkey = c.get('pubkey') as string; const event = await getEvent(eventId, { kind: 1,