v1.18.x
Baris Usakli 6 years ago
parent f9d92db5d5
commit 756dfd8ae6

@ -51,7 +51,11 @@ recentController.getData = function (req, url, sort, callback) {
user.getSettings(req.uid, next);
},
categories: function (next) {
helpers.getCategoriesByStates(req.uid, cid, [categories.watchStates.watching, categories.watchStates.notwatching], next);
const states = [categories.watchStates.watching, categories.watchStates.notwatching];
if (filter === 'watched') {
states.push(categories.watchStates.ignoring);
}
helpers.getCategoriesByStates(req.uid, cid, states, next);
},
rssToken: function (next) {
user.auth.getFeedToken(req.uid, next);

@ -36,7 +36,11 @@ unreadController.get = function (req, res, next) {
if (plugins.hasListeners('filter:unread.categories')) {
plugins.fireHook('filter:unread.categories', { uid: req.uid, cid: cid }, next);
} else {
helpers.getCategoriesByStates(req.uid, cid, [categories.watchStates.watching], next);
const states = [categories.watchStates.watching];
if (filter === 'watched') {
states.push(categories.watchStates.notwatching, categories.watchStates.ignoring);
}
helpers.getCategoriesByStates(req.uid, cid, states, next);
}
},
settings: function (next) {

Loading…
Cancel
Save