Merge branch 'master' into readstories

* master:
  Fixing Subscribe button for tryfeeds.
  Fixing IFTTT saved story tags.
This commit is contained in:
Samuel Clay 2014-06-25 12:51:44 -07:00
commit aec8e36a80
2 changed files with 5 additions and 1 deletions

View file

@ -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']))

View file

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