From cf6002a1bd6b4a8ea79f31cd2416f1d5b58dd72a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 14 Sep 2023 15:38:27 -0500 Subject: [PATCH] order by `like.indexedAt` in app view (#1592) * order by like.indexedAt * use keyset for ordering * simplify * ok ok ok I get it now * Update packages/bsky/src/api/app/bsky/feed/getActorLikes.ts Co-authored-by: Daniel Holmgren --------- Co-authored-by: Daniel Holmgren --- packages/bsky/src/api/app/bsky/feed/getActorLikes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bsky/src/api/app/bsky/feed/getActorLikes.ts b/packages/bsky/src/api/app/bsky/feed/getActorLikes.ts index 73b8b070262..3da1b0d042a 100644 --- a/packages/bsky/src/api/app/bsky/feed/getActorLikes.ts +++ b/packages/bsky/src/api/app/bsky/feed/getActorLikes.ts @@ -72,7 +72,7 @@ const skeleton = async ( .innerJoin('like', 'like.subject', 'feed_item.uri') .where('like.creator', '=', actorDid) - const keyset = new FeedKeyset(ref('feed_item.sortAt'), ref('feed_item.cid')) + const keyset = new FeedKeyset(ref('like.sortAt'), ref('like.cid')) feedItemsQb = paginate(feedItemsQb, { limit,