Statusphere, but in atcute and SvelteKit
atproto svelte sveltekit drizzle atcute typescript
19
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: check that createdAt is valid

Mary 4c32de81 f5c75edf

+3 -1
+3 -1
src/lib/server/tap/ingest.ts
··· 94 94 } 95 95 96 96 const record = parsed.value; 97 + 98 + const createdAt = Date.parse(record.createdAt); 97 99 const indexedAt = Date.now(); 98 - const sortAt = Math.min(Date.parse(record.createdAt), indexedAt); 100 + const sortAt = Number.isNaN(createdAt) ? indexedAt : Math.min(createdAt, indexedAt); 99 101 100 102 await db 101 103 .insert(status)