Keep a feed, an OPML or a Patreon creator out of All Subscriptions (#288)
A switch in the feed's settings, In All Subscriptions, on its subscription as hide_from_all. All Subscriptions' list and count leave out a feed hidden on its own or through the OPML it is in, and the page's unread count does the same. Signals read every feed as before, and Currently Listening, which is All Subscriptions' in-progress filter, keeps an episode under way whatever the feed's setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -144,6 +144,18 @@ test('a Patreon feed is told by its address', () => {
|
||||
assert.equal(run('isPatreon(null)'), false);
|
||||
});
|
||||
|
||||
test("All Subscriptions' unread count leaves out feeds hidden from it, and an OPML's shows with it", () => {
|
||||
run(`S.feeds = [
|
||||
{id: 'o', group: null, unread: 0, hide_from_all: true},
|
||||
{id: 'a', group: 'o', unread: 2, hide_from_all: false},
|
||||
{id: 'c', group: null, unread: 3, hide_from_all: true},
|
||||
{id: 'd', group: null, unread: 5, hide_from_all: false}]`);
|
||||
assert.equal(run('unreadInAll()'), 5);
|
||||
run(`S.feeds[0].hide_from_all = false`);
|
||||
assert.equal(run('unreadInAll()'), 7);
|
||||
run(`S.feeds = []`);
|
||||
});
|
||||
|
||||
test('a Signal is a place of its own, found by its id', () => {
|
||||
run(`S.signals = [{id: 7, name: 'F1', keywords: ['f1'], unread: 2}]`);
|
||||
assert.equal(run(`signalId(':signal:7')`), 7);
|
||||
|
||||
Reference in New Issue
Block a user