From 53faa33d7ed6f667c6c89518e28b0d046fa145e5 Mon Sep 17 00:00:00 2001 From: dholms Date: Sun, 10 Sep 2023 19:37:05 -0500 Subject: [PATCH 1/4] increase threshold --- .github/workflows/build-and-push-bsky-aws.yaml | 1 + packages/bsky/src/api/app/bsky/feed/getTimeline.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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', From b8da9f79b85cd54b519879a24fda6ba69f704829 Mon Sep 17 00:00:00 2001 From: dholms Date: Sun, 10 Sep 2023 19:37:25 -0500 Subject: [PATCH 2/4] branch name --- .github/workflows/build-and-push-bsky-aws.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push-bsky-aws.yaml b/.github/workflows/build-and-push-bsky-aws.yaml index a4b0c30a66e..bf6fdd0b753 100644 --- a/.github/workflows/build-and-push-bsky-aws.yaml +++ b/.github/workflows/build-and-push-bsky-aws.yaml @@ -3,7 +3,7 @@ on: push: branches: - main - - increase-timeline-threshold + - increase-timeline-threshol env: REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }} USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }} From 8a560fe34bd3ca0ad5367e1f77033c00da1675d7 Mon Sep 17 00:00:00 2001 From: dholms Date: Sun, 10 Sep 2023 19:38:16 -0500 Subject: [PATCH 3/4] fix --- .github/workflows/build-and-push-bsky-aws.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push-bsky-aws.yaml b/.github/workflows/build-and-push-bsky-aws.yaml index bf6fdd0b753..a4b0c30a66e 100644 --- a/.github/workflows/build-and-push-bsky-aws.yaml +++ b/.github/workflows/build-and-push-bsky-aws.yaml @@ -3,7 +3,7 @@ on: push: branches: - main - - increase-timeline-threshol + - increase-timeline-threshold env: REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }} USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }} From 169bb2b152d76af044dea050465c3818395dfcf3 Mon Sep 17 00:00:00 2001 From: dholms Date: Mon, 11 Sep 2023 17:26:52 -0500 Subject: [PATCH 4/4] rm build cfg --- .github/workflows/build-and-push-bsky-aws.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-and-push-bsky-aws.yaml b/.github/workflows/build-and-push-bsky-aws.yaml index a4b0c30a66e..36b1aa23cb3 100644 --- a/.github/workflows/build-and-push-bsky-aws.yaml +++ b/.github/workflows/build-and-push-bsky-aws.yaml @@ -3,7 +3,6 @@ on: push: branches: - main - - increase-timeline-threshold env: REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }} USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }}