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 /appinfo | |
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 'appinfo')
-rw-r--r-- | appinfo/routes.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index ac0ecb315..4397b4750 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -151,13 +151,13 @@ $this->create('news_items_unread', '/items/{itemId}/unread')->post()->action( } ); -$this->create('news_items_star', '/items/{itemId}/star')->post()->action( +$this->create('news_items_star', '/items/{feedId}/{guidHash}/star')->post()->action( function($params){ App::main('ItemController', 'star', $params, new DIContainer()); } ); -$this->create('news_items_unstar', '/items/{itemId}/unstar')->post()->action( +$this->create('news_items_unstar', '/items/{feedId}/{guidHash}/unstar')->post()->action( function($params){ App::main('ItemController', 'unstar', $params, new DIContainer()); } |