Apply 2 suggestion(s) to 2 file(s)
This commit is contained in:
parent
d8a471272d
commit
1f7a4664ec
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue