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

+8
View File
@@ -341,6 +341,14 @@ function filterByTagPreferences({
enforceInterests,
}) {
const tagPreferences = context?.runtime?.tagPreferences;
if (tagPreferences?.available === false) {
context?.addWhy?.({
stage: stageName,
type: "status",
reason: "preferences-unavailable",
});
return items;
}
const interests = normalizeTagSet(tagPreferences?.interests);
const disinterests = normalizeTagSet(tagPreferences?.disinterests);
if (!interests.size && !disinterests.size) {