From 685dc68c12303202edf249e7bdbede659683065a Mon Sep 17 00:00:00 2001 From: RoberTu <4065233+robertu7@users.noreply.github.com> Date: Mon, 17 Aug 2020 11:52:11 +0800 Subject: [PATCH 1/2] fix(feed): fix hottest feed a/b splitting --- src/views/Home/Feed/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/Home/Feed/index.tsx b/src/views/Home/Feed/index.tsx index c5cde619a4..d3bef08ae4 100644 --- a/src/views/Home/Feed/index.tsx +++ b/src/views/Home/Feed/index.tsx @@ -87,10 +87,14 @@ const MainFeed = ({ feedSortType: sortBy, viewMode }: MainFeedProps) => { /** * Data Fetching + * + * Hottest Feed: + * 1) Logged-in User: Hottest, `article_value_materialized` + * 2) Anonymous User: Valued, `article_activity_materialized` */ let query = FEED_ARTICLES_PUBLIC[sortBy] - if (isHottestFeed && viewer.id) { + if (isHottestFeed && !viewer.id) { query = FEED_ARTICLES_PUBLIC.valued } From 382a414cc19c9b377dac25132b713311c1ec9364 Mon Sep 17 00:00:00 2001 From: RoberTu <4065233+robertu7@users.noreply.github.com> Date: Mon, 17 Aug 2020 12:43:04 +0800 Subject: [PATCH 2/2] fix(feed): fix comment --- src/views/Home/Feed/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Home/Feed/index.tsx b/src/views/Home/Feed/index.tsx index d3bef08ae4..16d4dfc68d 100644 --- a/src/views/Home/Feed/index.tsx +++ b/src/views/Home/Feed/index.tsx @@ -89,8 +89,8 @@ const MainFeed = ({ feedSortType: sortBy, viewMode }: MainFeedProps) => { * Data Fetching * * Hottest Feed: - * 1) Logged-in User: Hottest, `article_value_materialized` - * 2) Anonymous User: Valued, `article_activity_materialized` + * 1) Logged-in User: Hottest, `article_activity_materialized` + * 2) Anonymous User: Valued, `article_value_materialized` */ let query = FEED_ARTICLES_PUBLIC[sortBy]