Apply 2 suggestion(s) to 2 file(s)

This commit is contained in:
Alex Gleason 2024-04-08 15:49:35 +00:00
parent d8a471272d
commit 1f7a4664ec
2 changed files with 2 additions and 4 deletions

View File

@ -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);

View File

@ -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);