diff --git a/src/controllers/api/statuses.ts b/src/controllers/api/statuses.ts index be8dbd9..91c1092 100644 --- a/src/controllers/api/statuses.ts +++ b/src/controllers/api/statuses.ts @@ -185,11 +185,9 @@ const reblogStatusController: AppController = async (c) => { return c.json({ error: 'Event not found.' }, 404); } - const tags: string[][] = [['e', event.id], ['p', event.pubkey]]; - const reblogEvent = await createEvent({ kind: 6, - tags, + tags: [['e', event.id], ['p', event.pubkey]], }, c); const status = await renderReblog(reblogEvent); diff --git a/src/controllers/api/streaming.ts b/src/controllers/api/streaming.ts index 05eaf20..2ad9eda 100644 --- a/src/controllers/api/streaming.ts +++ b/src/controllers/api/streaming.ts @@ -63,7 +63,7 @@ const streamingController: AppController = (c) => { if (filter) { for await (const event of Sub.sub(socket, '1', [filter])) { - if (event.kind == 6) { + if (event.kind === 6) { const status = await renderReblog(event); if (status) { send('update', status);