fixed bug with wrong feed names
This commit is contained in:
parent
80b5dd6459
commit
e510553c83
1 changed files with 4 additions and 4 deletions
|
@ -85,6 +85,7 @@ OwnCloud.prototype.getUnreadFeeds = function(callback, skip) {
|
||||||
|
|
||||||
var _this = this;
|
var _this = this;
|
||||||
this.doOperation("GET", "items", options, function(data) {
|
this.doOperation("GET", "items", options, function(data) {
|
||||||
|
|
||||||
var items = data.items;
|
var items = data.items;
|
||||||
|
|
||||||
function isFeedAvailable(o) {
|
function isFeedAvailable(o) {
|
||||||
|
@ -110,14 +111,13 @@ OwnCloud.prototype.getFeeds = function(callback) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
this.doOperation("GET", "feeds", {}, function(data) {
|
this.doOperation("GET", "feeds", {}, function(data) {
|
||||||
|
|
||||||
this.feeds = {};
|
_this.feeds = {};
|
||||||
for (var i = 0; i < data.feeds.length; i++) {
|
for (var i = 0; i < data.feeds.length; i++) {
|
||||||
var feed = data.feeds[i];
|
var feed = data.feeds[i];
|
||||||
this.feeds[feed.id] = feed;
|
_this.feeds[feed.id] = feed;
|
||||||
}
|
}
|
||||||
|
|
||||||
localStorage.feeds = JSON.stringify(this.feeds);
|
localStorage.feeds = JSON.stringify(this.feeds);
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -156,7 +156,7 @@ OwnCloud.prototype.setArticleUnread = function(article, callback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
OwnCloud.prototype.setArticlesStarred = function(articles, callback) {
|
OwnCloud.prototype.setArticlesStarred = function(articles, callback) {
|
||||||
console.log(JSON.stringify(articles))
|
|
||||||
var options = {
|
var options = {
|
||||||
items: articles.map(function(o) { return { feedId: o.feed_id, guidHash: o.guid_hash }; })
|
items: articles.map(function(o) { return { feedId: o.feed_id, guidHash: o.guid_hash }; })
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue