diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-27 13:47:53 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-27 13:47:53 +0100 |
commit | 78674ebc36cf9d24309799651c09a7e194d15ea4 (patch) | |
tree | 6cf02edf94e6dee0d7c0f05b3d817fc6f96ecf74 /js/public | |
parent | 003ab9ca77a2df654bdd152a29f9cf8071d55b68 (diff) |
star by guid hash and feedid to also star an item if it has been updated in the meantime. read still only works on the current version of the item, that means if an item is updated on the server side and an older version is being read on the server it will not be marked as read
Diffstat (limited to 'js/public')
-rw-r--r-- | js/public/app.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/public/app.js b/js/public/app.js index e5b6e3cab..06cbb6e3e 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -1122,7 +1122,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. return this._request.get('news_items_starred', params); }; - Persistence.prototype.starItem = function(itemId) { + Persistence.prototype.starItem = function(feedId, guidHash) { /* Stars an item */ @@ -1130,13 +1130,14 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. var params; params = { routeParams: { - itemId: itemId + feedId: feedId, + guidHash: guidHash } }; return this._request.post('news_items_star', params); }; - Persistence.prototype.unstarItem = function(itemId) { + Persistence.prototype.unstarItem = function(feedId, guidHash) { /* Unstars an item */ @@ -1144,7 +1145,8 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. var params; params = { routeParams: { - itemId: itemId + feedId: feedId, + guidHash: guidHash } }; return this._request.post('news_items_unstar', params); |