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 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, 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