Skip to content

Commit

Permalink
order by like.indexedAt in app view (bluesky-social#1592)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

---------

Co-authored-by: Daniel Holmgren <[email protected]>
  • Loading branch information
estrattonbailey and dholms authored Sep 14, 2023
1 parent 9879ca9 commit cf6002a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bsky/src/api/app/bsky/feed/getActorLikes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cf6002a

Please sign in to comment.