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);
|
return c.json({ error: 'Event not found.' }, 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
const tags: string[][] = [['e', event.id], ['p', event.pubkey]];
|
|
||||||
|
|
||||||
const reblogEvent = await createEvent({
|
const reblogEvent = await createEvent({
|
||||||
kind: 6,
|
kind: 6,
|
||||||
tags,
|
tags: [['e', event.id], ['p', event.pubkey]],
|
||||||
}, c);
|
}, c);
|
||||||
|
|
||||||
const status = await renderReblog(reblogEvent);
|
const status = await renderReblog(reblogEvent);
|
||||||
|
|
|
@ -63,7 +63,7 @@ const streamingController: AppController = (c) => {
|
||||||
|
|
||||||
if (filter) {
|
if (filter) {
|
||||||
for await (const event of Sub.sub(socket, '1', [filter])) {
|
for await (const event of Sub.sub(socket, '1', [filter])) {
|
||||||
if (event.kind == 6) {
|
if (event.kind === 6) {
|
||||||
const status = await renderReblog(event);
|
const status = await renderReblog(event);
|
||||||
if (status) {
|
if (status) {
|
||||||
send('update', status);
|
send('update', status);
|
||||||
|
|
Loading…
Reference in New Issue