diff --git a/.github/workflows/build-and-push-bsky-aws.yaml b/.github/workflows/build-and-push-bsky-aws.yaml index 36b1aa23cb3..a4b0c30a66e 100644 --- a/.github/workflows/build-and-push-bsky-aws.yaml +++ b/.github/workflows/build-and-push-bsky-aws.yaml @@ -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 }} diff --git a/packages/bsky/src/api/app/bsky/feed/getTimeline.ts b/packages/bsky/src/api/app/bsky/feed/getTimeline.ts index 55f0a2837c3..315ef0c9eb5 100644 --- a/packages/bsky/src/api/app/bsky/feed/getTimeline.ts +++ b/packages/bsky/src/api/app/bsky/feed/getTimeline.ts @@ -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', @@ -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',