aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-08-30 13:53:49 +0200
committerGitHub <noreply@github.com>2017-08-30 13:53:49 +0200
commit119e6c5edb93ab8a14fd46d04d224091542039c4 (patch)
tree521a316a60c7bd162bb52a86f55a8bf4e3c6f475 /src/Wallabag/ApiBundle/Controller
parent854616ac6d6246e8e0451342ab841985b401604d (diff)
parenta991c46eedec0efb24d0a9974b1c7fcabf8cfa66 (diff)
downloadwallabag-119e6c5edb93ab8a14fd46d04d224091542039c4.tar.gz
wallabag-119e6c5edb93ab8a14fd46d04d224091542039c4.tar.zst
wallabag-119e6c5edb93ab8a14fd46d04d224091542039c4.zip
Merge pull request #3330 from franek/set-starred-date
Add starred_at field which is set when an entry is starred
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller')
-rw-r--r--src/Wallabag/ApiBundle/Controller/EntryRestController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php
index bc1b6f92..6db97731 100644
--- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php
@@ -361,7 +361,7 @@ class EntryRestController extends WallabagRestController
361 } 361 }
362 362
363 if (null !== $data['isStarred']) { 363 if (null !== $data['isStarred']) {
364 $entry->setStarred((bool) $data['isStarred']); 364 $entry->updateStar((bool) $data['isStarred']);
365 } 365 }
366 366
367 if (!empty($data['tags'])) { 367 if (!empty($data['tags'])) {
@@ -464,7 +464,7 @@ class EntryRestController extends WallabagRestController
464 } 464 }
465 465
466 if (null !== $data['isStarred']) { 466 if (null !== $data['isStarred']) {
467 $entry->setStarred((bool) $data['isStarred']); 467 $entry->updateStar((bool) $data['isStarred']);
468 } 468 }
469 469
470 if (!empty($data['tags'])) { 470 if (!empty($data['tags'])) {