Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livestreams: fixes related to 'excludedChannelIds' #2936

Merged
merged 4 commits into from
Aug 23, 2023
Merged

Conversation

infinite-persistence
Copy link
Collaborator

@infinite-persistence infinite-persistence commented Aug 23, 2023

Closes #2933

Test: inf

The top loop must have come from experimentation when moving the filter from a selector to a util-function. It does a subset of the bottom loop, and would have included duplicates if `excludedChannelIds` was provided.
@infinite-persistence infinite-persistence changed the title Homepage livestreams: honor 'excludedChannelIds' Livestreams: fixes related to 'excludedChannelIds' Aug 23, 2023
Closes 2933

## Issue
- CategoryPage was still using the old selector instead of `filterActiveLivestreamUris()`, which contains a prior fix.

- The old selector logic assumes an "either or" of the whitelist/blacklist, but in reality both can be given.

## Change
- Sync up the selector to do an "AND", where the blacklist works on top of the whitelist.

- Doing the fix directly for now ... can DRY it up later.
Message from Tom:
> use excluded on both livestream and regular content sections. If not wild west, don't use exluded
@tzarebczan tzarebczan merged commit 8446f72 into master Aug 23, 2023
2 checks passed
@tzarebczan tzarebczan deleted the live.not branch August 23, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass not channel ids to livestream list
2 participants