Adding tag feeds.

This commit is contained in:
Samuel Clay 2013-08-16 16:02:45 -07:00
parent eea0e29dda
commit 582364c64d
3 changed files with 4 additions and 3 deletions

View file

@ -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 = {

View file

@ -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",

View file

@ -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();