From 877bdb7fdef7b11356139028430bd058fda0cd8a Mon Sep 17 00:00:00 2001 From: bluecloud <96812901+pitb2022@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:31:54 +0800 Subject: [PATCH 1/3] fix(MomentDigest): set referrer --- src/components/MomentDigest/Feed/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/MomentDigest/Feed/index.tsx b/src/components/MomentDigest/Feed/index.tsx index ec347c6fb4..b4569a68c3 100644 --- a/src/components/MomentDigest/Feed/index.tsx +++ b/src/components/MomentDigest/Feed/index.tsx @@ -45,13 +45,18 @@ export const MomentDigestFeed = ({ }) const goToMomentDetail = () => { + setReferrer() router.push(momentDetailPath.href) } - const handleClickDateTime = () => { + const setReferrer = () => { sessionStorage.set(MOMENT_DIGEST_REFERRER, true) } + const handleClickDateTime = () => { + setReferrer() + } + const Container = ({ openMomentDetail, hasAuthor, From a29ef99ad68d6a2d29bb4f27f60c99211fe78246 Mon Sep 17 00:00:00 2001 From: bluecloud <96812901+pitb2022@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:34:12 +0800 Subject: [PATCH 2/3] fix(Announcements): remove unused field --- src/views/Home/Announcements/gql.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/views/Home/Announcements/gql.ts b/src/views/Home/Announcements/gql.ts index cc3db45dc7..37b95f5df9 100644 --- a/src/views/Home/Announcements/gql.ts +++ b/src/views/Home/Announcements/gql.ts @@ -2,9 +2,6 @@ import gql from 'graphql-tag' export const VISIBLE_ANNOUNCEMENTS = gql` query VisibleAnnouncements($input: AnnouncementsInput!) { - viewer { - id - } official { announcements(input: $input) { id From ca9076a22a89fd0a35049e3530c6061c6ee86a1f Mon Sep 17 00:00:00 2001 From: j <13580441+gary02@users.noreply.github.com> Date: Thu, 29 Aug 2024 19:15:03 +0800 Subject: [PATCH 3/3] feat(facebook):update client id --- .env.prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.prod b/.env.prod index 809d2910da..7f8e1ac6d5 100644 --- a/.env.prod +++ b/.env.prod @@ -28,7 +28,7 @@ NEXT_PUBLIC_ALCHEMY_KEY=bOu-fCphi9mvePsxg968Qe-pidHQNdlT NEXT_PUBLIC_CF_TURNSTILE_SITE_KEY=0x4AAAAAAAKVODkJMwfIxG78 NEXT_PUBLIC_GOOGLE_CLIENT_ID=751677068109-rkml7q9ujf8ems09cclh7qckf14svcgs.apps.googleusercontent.com NEXT_PUBLIC_TWITTER_CLIENT_ID=cmdKbUlyd1ZZZDZYa3dTampidGo6MTpjaQ -NEXT_PUBLIC_FACEBOOK_CLIENT_ID=687698420193159 +NEXT_PUBLIC_FACEBOOK_CLIENT_ID=161556310354354 NEXT_PUBLIC_NOMAD_MATTERS_CAMPAIGN_LINK_EN=/@hi176/476405-a-guide-to-invite NEXT_PUBLIC_NOMAD_MATTERS_CAMPAIGN_LINK=/@hi176/476404 NEXT_PUBLIC_BILLBOARD_ADDRESS=0x88EA16c2a69f50B9bc2E8f7684D425f33f29225F