[READ ONLY MIRROR] Spark Social AppView Server github.com/sprksocial/server
atproto deno hono lexicon
5
fork

Configure Feed

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

fix(feeds): following feed pagination

+3 -4
+3 -4
data-plane/routes/feeds.ts
··· 1 1 import { Database } from "../db/index.ts"; 2 2 import { TimeCidKeyset } from "../db/pagination.ts"; 3 - import { compositeTime } from "../util.ts"; 4 3 5 4 // Helper function to format feed items 6 5 function feedItemFromRow( ··· 23 22 cid: string; 24 23 authorDid: string; 25 24 createdAt: string; 25 + indexedAt: string; 26 26 type: "post" | "repost"; 27 27 repostUri?: string; 28 - sortAt: string; 29 28 } 30 29 31 30 export class Feeds { ··· 87 86 cid: p.cid, 88 87 authorDid: p.authorDid, 89 88 createdAt: p.createdAt, 89 + indexedAt: p.indexedAt, 90 90 type: "post" as const, 91 - sortAt: compositeTime(p.createdAt, p.indexedAt) || p.createdAt, 92 91 })); 93 92 94 93 return { ··· 124 123 cid: p.cid, 125 124 authorDid: p.authorDid, 126 125 createdAt: p.createdAt, 126 + indexedAt: p.indexedAt, 127 127 type: "post" as const, 128 - sortAt: compositeTime(p.createdAt, p.indexedAt) || p.createdAt, 129 128 })); 130 129 131 130 return {