summaryrefslogtreecommitdiffstats
path: root/js/app/services/persistence.coffee
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-27 13:47:53 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-27 13:47:53 +0100
commit78674ebc36cf9d24309799651c09a7e194d15ea4 (patch)
tree6cf02edf94e6dee0d7c0f05b3d817fc6f96ecf74 /js/app/services/persistence.coffee
parent003ab9ca77a2df654bdd152a29f9cf8071d55b68 (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/app/services/persistence.coffee')
-rw-r--r--js/app/services/persistence.coffee10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/app/services/persistence.coffee b/js/app/services/persistence.coffee
index 24b371b54..41aa13722 100644
--- a/js/app/services/persistence.coffee
+++ b/js/app/services/persistence.coffee
@@ -81,25 +81,27 @@ angular.module('News').factory '_Persistence', ->
@_request.get 'news_items_starred', params
- starItem: (itemId) ->
+ starItem: (feedId, guidHash) ->
###
Stars an item
###
params =
routeParams:
- itemId: itemId
+ feedId: feedId
+ guidHash: guidHash
@_request.post 'news_items_star', params
- unstarItem: (itemId) ->
+ unstarItem: (feedId, guidHash) ->
###
Unstars an item
###
params =
routeParams:
- itemId: itemId
+ feedId: feedId
+ guidHash: guidHash
@_request.post 'news_items_unstar', params