From 78674ebc36cf9d24309799651c09a7e194d15ea4 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 27 Mar 2013 13:47:53 +0100 Subject: 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 --- appinfo/routes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'appinfo') 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()); } -- cgit v1.2.3