fix: deno fmt
This commit is contained in:
parent
ba08958b30
commit
25fcd04d9f
|
@ -58,7 +58,7 @@ async function renderStatuses(c: AppContext, filters: NostrFilter[]) {
|
||||||
|
|
||||||
const statuses = await Promise.all(events.map((event) => {
|
const statuses = await Promise.all(events.map((event) => {
|
||||||
if (event.kind === 6) {
|
if (event.kind === 6) {
|
||||||
return renderReblog(event)
|
return renderReblog(event);
|
||||||
}
|
}
|
||||||
return renderStatus(event, c.get('pubkey'));
|
return renderStatus(event, c.get('pubkey'));
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -101,12 +101,12 @@ async function renderStatus(event: DittoEvent, viewerPubkey?: string) {
|
||||||
async function renderReblog(event: DittoEvent) {
|
async function renderReblog(event: DittoEvent) {
|
||||||
if (!event.author) return;
|
if (!event.author) return;
|
||||||
|
|
||||||
for (let i = 0; i < event.tags.length; i++) {
|
for (let i = 0; i < event.tags.length; i++) {
|
||||||
if (event.tags[i][0] === 'e') {
|
if (event.tags[i][0] === 'e') {
|
||||||
event.repost = await getEvent(event.tags[i][1], {kind:1})
|
event.repost = await getEvent(event.tags[i][1], { kind: 1 });
|
||||||
break
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!event.repost) return;
|
if (!event.repost) return;
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ async function renderReblog(event: DittoEvent) {
|
||||||
id: event.id,
|
id: event.id,
|
||||||
account: await renderAccount(event.author),
|
account: await renderAccount(event.author),
|
||||||
reblogged: true,
|
reblogged: true,
|
||||||
reblog
|
reblog,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue