mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Merge branch 'master' into readstories
* master: Fixing Subscribe button for tryfeeds. Fixing IFTTT saved story tags.
This commit is contained in:
commit
aec8e36a80
2 changed files with 5 additions and 1 deletions
|
@ -334,7 +334,7 @@ def api_saved_tag_list(request):
|
||||||
tags = []
|
tags = []
|
||||||
|
|
||||||
for tag in starred_counts:
|
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'],
|
tags.append(dict(label="%s (%s %s)" % (tag['tag'], tag['count'],
|
||||||
'story' if tag['count'] == 1 else 'stories'),
|
'story' if tag['count'] == 1 else 'stories'),
|
||||||
value=tag['tag']))
|
value=tag['tag']))
|
||||||
|
|
|
@ -514,6 +514,10 @@ NEWSBLUR.AssetModel = Backbone.Router.extend({
|
||||||
}
|
}
|
||||||
if (feed_id == this.feed_id) {
|
if (feed_id == this.feed_id) {
|
||||||
if (data.feeds) {
|
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);
|
this.feeds.add(data.feeds);
|
||||||
}
|
}
|
||||||
if (data.classifiers) {
|
if (data.classifiers) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue