summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
authorfox <[email protected]>2023-03-07 20:13:10 +0300
committerfox <[email protected]>2023-03-07 20:13:10 +0300
commitcddbf5bf5a7e2c433275a3bec089f318d4f211af (patch)
tree8963be1f66c848638dfea5c68c09ac29915bc715 /js/Headlines.js
parentc4026b408b824769de6152d0c3bf0eb504a1e935 (diff)
parentb14a8a76ebdf41adc7b8e0e95db1decb1a3d95f6 (diff)
Merge pull request 'Replace special feed and category numbers with constants.' (#104) from wn/tt-rss:feature/special-feed-and-cat-consts into master
Reviewed-on: https://dev.tt-rss.org/tt-rss/tt-rss/pulls/104
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 2be3cd697..be17bf832 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -307,7 +307,7 @@ const Headlines = {
offset = unread_in_buffer;
break;
case "adaptive":
- if (!(Feeds.getActive() == -1 && !Feeds.activeIsCat()))
+ if (!(Feeds.getActive() == Feeds.FEED_STARRED && !Feeds.activeIsCat()))
offset = num_unread > 0 ? unread_in_buffer : num_all;
break;
}
@@ -746,7 +746,7 @@ const Headlines = {
feed_id = reply['headlines']['id'];
Feeds.last_search_query = reply['headlines']['search_query'];
- if (feed_id != -7 && (feed_id != Feeds.getActive() || is_cat != Feeds.activeIsCat()))
+ if (feed_id != Feeds.FEED_ERROR && (feed_id != Feeds.getActive() || is_cat != Feeds.activeIsCat()))
return;
const headlines_count = reply['headlines-info']['count'];