Skip to content

Commit

Permalink
order by like.indexedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Sep 12, 2023
1 parent 0533fab commit 58016e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/bsky/src/api/app/bsky/feed/getActorLikes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const skeleton = async (
.selectFeedItemQb()
.innerJoin('like', 'like.subject', 'feed_item.uri')
.where('like.creator', '=', actorDid)
.orderBy('like.indexedAt', 'desc')

const keyset = new FeedKeyset(ref('feed_item.sortAt'), ref('feed_item.cid'))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default function (server: Server, ctx: AppContext) {
.selectFeedItemQb()
.innerJoin('like', 'like.subject', 'feed_item.uri')
.where('like.creator', '=', actorDid)
.orderBy('like.indexedAt', 'desc')

// for access-based auth, enforce blocks
if (requester) {
Expand Down

0 comments on commit 58016e1

Please sign in to comment.