diff --git a/apps/oauth/views.py b/apps/oauth/views.py index 16c15158e..1af584ed3 100644 --- a/apps/oauth/views.py +++ b/apps/oauth/views.py @@ -334,7 +334,7 @@ def api_saved_tag_list(request): tags = [] for tag in starred_counts: - if tag['tag'] == "": continue + if not tag['tag'] or tag['tag'] == "": continue tags.append(dict(label="%s (%s %s)" % (tag['tag'], tag['count'], 'story' if tag['count'] == 1 else 'stories'), value=tag['tag'])) diff --git a/media/js/newsblur/common/assetmodel.js b/media/js/newsblur/common/assetmodel.js index e40d54800..02e70434e 100644 --- a/media/js/newsblur/common/assetmodel.js +++ b/media/js/newsblur/common/assetmodel.js @@ -514,6 +514,10 @@ NEWSBLUR.AssetModel = Backbone.Router.extend({ } if (feed_id == this.feed_id) { if (data.feeds) { + var river = _.any(['river:', 'social:'], function(prefix) { + return _.isString(feed_id) && _.string.startsWith(feed_id, prefix); + }); + if (river) _.each(data.feeds, function(feed) { feed.temp = true; }); this.feeds.add(data.feeds); } if (data.classifiers) {