Blogging platform with advanced tools for arts and sciences.
6

Configure Feed

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

Clamp future dates to the current one when indexing or doing fanout and fanin for feeds

lemma (Jun 10, 2026, 12:06 AM -0500) 3dbcaaca f84a06ce

+5 -5
+1 -1
infra/api/src/index.ts
··· 673 673 const postRkey = (post.SK as string).slice('p#'.length); 674 674 const item: Record<string, unknown> = { 675 675 PK: `u#${readerDid}#timeline`, 676 - SK: `${post.publishedAt as string}#${postRkey}`, 676 + SK: `${new Date(Math.min(new Date(post.publishedAt as string).getTime(), Date.now())).toISOString()}#${postRkey}`, 677 677 entityType: 'timeline-item', 678 678 authorDid, 679 679 rkey: postRkey,
+2 -2
infra/backfill/src/index.ts
··· 171 171 PK: `u#${did}#post`, 172 172 SK: `p#${rkey}`, 173 173 GSI1PK: 'blog-post#published', 174 - GSI1SK: `${record.publishedAt}#${rkey}`, 174 + GSI1SK: `${new Date(Math.min(new Date(record.publishedAt).getTime(), Date.now())).toISOString()}#${rkey}`, 175 175 entityType: 'blog-post', 176 176 visibility: 'published', 177 177 atUri: `at://${did}/site.standard.document/${rkey}`, ··· 231 231 const postRkey = (post.SK as string).slice('p#'.length) 232 232 const item: Record<string, unknown> = { 233 233 PK: `u#${readerDid}#timeline`, 234 - SK: `${post.publishedAt as string}#${postRkey}`, 234 + SK: `${new Date(Math.min(new Date(post.publishedAt as string).getTime(), Date.now())).toISOString()}#${postRkey}`, 235 235 entityType: 'timeline-item', 236 236 authorDid, 237 237 rkey: postRkey,
+2 -2
infra/indexer/src/index.ts
··· 308 308 const readerDid = (subscriber.SK as string).slice('u#'.length) 309 309 const item: Record<string, unknown> = { 310 310 PK: `u#${readerDid}#timeline`, 311 - SK: `${record.publishedAt}#${rkey}`, 311 + SK: `${new Date(Math.min(new Date(record.publishedAt).getTime(), Date.now())).toISOString()}#${rkey}`, 312 312 entityType: 'timeline-item', 313 313 authorDid, 314 314 rkey, ··· 357 357 const postRkey = (post.SK as string).slice('p#'.length) 358 358 const item: Record<string, unknown> = { 359 359 PK: `u#${readerDid}#timeline`, 360 - SK: `${post.publishedAt as string}#${postRkey}`, 360 + SK: `${new Date(Math.min(new Date(post.publishedAt as string).getTime(), Date.now())).toISOString()}#${postRkey}`, 361 361 entityType: 'timeline-item', 362 362 authorDid, 363 363 rkey: postRkey,