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

Configure Feed

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

fix(dataplane): pagination primary keys

+9 -9
+1 -1
data-plane/routes/blocks.ts
··· 42 42 if (blocks.length === limit && blocks.length > 0) { 43 43 const lastBlock = blocks[blocks.length - 1]; 44 44 nextCursor = this.timeCidKeyset.pack({ 45 - primary: lastBlock.createdAt, 45 + primary: lastBlock.indexedAt, 46 46 secondary: lastBlock.cid, 47 47 }); 48 48 }
+2 -2
data-plane/routes/feed-gens.ts
··· 32 32 if (feeds.length === limit && feeds.length > 0) { 33 33 const lastFeed = feeds[feeds.length - 1]; 34 34 nextCursor = this.timeCidKeyset.pack({ 35 - primary: lastFeed.createdAt, 35 + primary: lastFeed.indexedAt, 36 36 secondary: lastFeed.cid, 37 37 }); 38 38 } ··· 96 96 if (feeds.length === limit && feeds.length > 0) { 97 97 const lastFeed = feeds[feeds.length - 1]; 98 98 nextCursor = this.timeCidKeyset.pack({ 99 - primary: lastFeed.createdAt, 99 + primary: lastFeed.indexedAt, 100 100 secondary: lastFeed.cid, 101 101 }); 102 102 }
+2 -2
data-plane/routes/follows.ts
··· 55 55 if (followers.length === limit && followers.length > 0) { 56 56 const lastFollower = followers[followers.length - 1]; 57 57 nextCursor = this.timeCidKeyset.pack({ 58 - primary: lastFollower.createdAt, 58 + primary: lastFollower.indexedAt, 59 59 secondary: lastFollower.cid, 60 60 }); 61 61 } ··· 88 88 if (follows.length === limit && follows.length > 0) { 89 89 const lastFollow = follows[follows.length - 1]; 90 90 nextCursor = this.timeCidKeyset.pack({ 91 - primary: lastFollow.createdAt, 91 + primary: lastFollow.indexedAt, 92 92 secondary: lastFollow.cid, 93 93 }); 94 94 }
+2 -2
data-plane/routes/likes.ts
··· 36 36 if (likes.length === limit && likes.length > 0) { 37 37 const lastLike = likes[likes.length - 1]; 38 38 nextCursor = this.timeCidKeyset.pack({ 39 - primary: lastLike.createdAt, 39 + primary: lastLike.indexedAt, 40 40 secondary: lastLike.cid, 41 41 }); 42 42 } ··· 87 87 if (likes.length === limit && likes.length > 0) { 88 88 const lastLike = likes[likes.length - 1]; 89 89 nextCursor = this.timeCidKeyset.pack({ 90 - primary: lastLike.createdAt, 90 + primary: lastLike.indexedAt, 91 91 secondary: lastLike.cid, 92 92 }); 93 93 }
+2 -2
data-plane/routes/reposts.ts
··· 38 38 if (reposts.length === limit && reposts.length > 0) { 39 39 const lastRepost = reposts[reposts.length - 1]; 40 40 nextCursor = this.timeCidKeyset.pack({ 41 - primary: lastRepost.createdAt, 41 + primary: lastRepost.indexedAt, 42 42 secondary: lastRepost.cid, 43 43 }); 44 44 } ··· 89 89 if (reposts.length === limit && reposts.length > 0) { 90 90 const lastRepost = reposts[reposts.length - 1]; 91 91 nextCursor = this.timeCidKeyset.pack({ 92 - primary: lastRepost.createdAt, 92 + primary: lastRepost.indexedAt, 93 93 secondary: lastRepost.cid, 94 94 }); 95 95 }