Skip to content

Commit

Permalink
increase threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Sep 11, 2023
1 parent b3046c3 commit 53faa33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-push-bsky-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- increase-timeline-threshold
env:
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }}
Expand Down
4 changes: 2 additions & 2 deletions packages/bsky/src/api/app/bsky/feed/getTimeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const getTimelineSkeleton = async (
.innerJoin('follow', 'follow.subjectDid', 'feed_item.originatorDid')
.where('follow.creator', '=', viewer)
.innerJoin('post', 'post.uri', 'feed_item.postUri')
.where('feed_item.sortAt', '>', getFeedDateThreshold(sortFrom, 1))
.where('feed_item.sortAt', '>', getFeedDateThreshold(sortFrom, 2))
.selectAll('feed_item')
.select([
'post.replyRoot',
Expand All @@ -79,7 +79,7 @@ export const getTimelineSkeleton = async (
.selectFrom('feed_item')
.innerJoin('post', 'post.uri', 'feed_item.postUri')
.where('feed_item.originatorDid', '=', viewer)
.where('feed_item.sortAt', '>', getFeedDateThreshold(sortFrom, 1))
.where('feed_item.sortAt', '>', getFeedDateThreshold(sortFrom, 2))
.selectAll('feed_item')
.select([
'post.replyRoot',
Expand Down

0 comments on commit 53faa33

Please sign in to comment.