mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Split subscriptions/hashtag readiness and expose unavailable preference states
This commit is contained in:
1 parent
c785894943
commit
fd3f9e723a
6 files changed
+246
-36
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user