summaryrefslogtreecommitdiffstats
path: root/controller/itemcontroller.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-25 21:54:26 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-25 21:54:26 +0100
commit3a237701e0c9ea8ea2bc4f5e6e4ac840282ab5fa (patch)
tree2e4b316de79ac297f6c66c89daaae0d5fced357c /controller/itemcontroller.php
parent0430a6ca38545463d7eea070204d77bddb447437 (diff)
return empty json responses when nothing has been done
Diffstat (limited to 'controller/itemcontroller.php')
-rw-r--r--controller/itemcontroller.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/controller/itemcontroller.php b/controller/itemcontroller.php
index ce76f3cab..44b7f9684 100644
--- a/controller/itemcontroller.php
+++ b/controller/itemcontroller.php
@@ -107,6 +107,8 @@ class ItemController extends Controller {
*/
public function star(){
$this->setStarred(true);
+
+ return $this->renderJSON();
}
@@ -117,6 +119,8 @@ class ItemController extends Controller {
*/
public function unstar(){
$this->setStarred(false);
+
+ return $this->renderJSON();
}
@@ -134,6 +138,8 @@ class ItemController extends Controller {
*/
public function read(){
$this->setRead(true);
+
+ return $this->renderJSON();
}
@@ -144,6 +150,8 @@ class ItemController extends Controller {
*/
public function unread(){
$this->setRead(false);
+
+ return $this->renderJSON();
}