Split subscriptions/hashtag readiness and expose unavailable preference states

This commit is contained in:
thePR0M3TH3AN committed 2026-02-08 14:10:39 -05:00
1 parent c785894943
commit fd3f9e723a
6 files changed
+246 -36

No files matched your search

+4
View File
@@ -523,6 +523,7 @@ export function createFeedCoordinator(deps) {
? this.getHashtagPreferences()
: {};
const { interests = [], disinterests = [] } = preferenceSource || {};
const preferencesAvailable = preferenceSource?.dataReady === true;
const moderationThresholds = this.getActiveModerationThresholds();
const watchedKeys = new Set();
@@ -544,6 +545,7 @@ export function createFeedCoordinator(deps) {
tagPreferences: {
interests: Array.isArray(interests) ? [...interests] : [],
disinterests: Array.isArray(disinterests) ? [...disinterests] : [],
available: preferencesAvailable,
},
moderationThresholds: moderationThresholds
? { ...moderationThresholds }
@@ -606,6 +608,7 @@ export function createFeedCoordinator(deps) {
? this.getHashtagPreferences()
: {};
const { interests = [], disinterests = [] } = preferenceSource || {};
const preferencesAvailable = preferenceSource?.dataReady === true;
const moderationThresholds = this.getActiveModerationThresholds();
const watchHistorySource =
@@ -636,6 +639,7 @@ export function createFeedCoordinator(deps) {
tagPreferences: {
interests: Array.isArray(interests) ? [...interests] : [],
disinterests: Array.isArray(disinterests) ? [...disinterests] : [],
available: preferencesAvailable,
},
watchHistoryTagCounts,
exploreTagIdf,