mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding tag feeds.
This commit is contained in:
parent
eea0e29dda
commit
582364c64d
3 changed files with 4 additions and 3 deletions
|
@ -257,9 +257,8 @@ def load_feeds(request):
|
|||
len(scheduled_feeds))
|
||||
ScheduleImmediateFetches.apply_async(kwargs=dict(feed_ids=scheduled_feeds))
|
||||
|
||||
starred_counts = MStarredStoryCounts.user_counts(user.pk)
|
||||
starred_count = starred_counts.get("", 0)
|
||||
if not starred_count and len(starred_counts.keys()):
|
||||
starred_counts, starred_count = MStarredStoryCounts.user_counts(user.pk, include_total=True)
|
||||
if not starred_count and len(starred_counts):
|
||||
starred_count = MStarredStory.objects(user_id=user.pk).count()
|
||||
|
||||
social_params = {
|
||||
|
|
|
@ -8,6 +8,7 @@ NEWSBLUR.Router = Backbone.Router.extend({
|
|||
"site/:site_id": "site",
|
||||
"saved": "starred",
|
||||
"saved/:tag": "starred",
|
||||
"folder/saved": "starred",
|
||||
"folder/:folder_name": "folder",
|
||||
"folder/:folder_name/": "folder",
|
||||
"social/:user_id/:slug": "social",
|
||||
|
|
|
@ -23,6 +23,7 @@ NEWSBLUR.Views.FeedList = Backbone.View.extend({
|
|||
this.$s.$feed_link_loader.css({'display': 'block'});
|
||||
NEWSBLUR.assets.feeds.bind('reset', _.bind(function() {
|
||||
this.make_feeds();
|
||||
this.make_starred_tags();
|
||||
|
||||
// TODO: Refactor this to load after both feeds and social feeds load.
|
||||
this.load_router();
|
||||
|
|
Loading…
Add table
Reference in a new issue