diff options
author | Yuriy Evdokimov <rurik19@yandex.ru> | 2016-05-18 10:30:33 +0500 |
---|---|---|
committer | Yuriy Evdokimov <rurik19@yandex.ru> | 2016-05-18 10:30:33 +0500 |
commit | 873e3806585078222b31e0d24d0c6159c493727f (patch) | |
tree | 705a2fb0d576832af8e13f5ad0375cd7d95a8c6b /src/Wallabag/ApiBundle/Controller | |
parent | cac3f603cf5f3cd43a17396f93d7c2d44ddd42e1 (diff) | |
download | wallabag-873e3806585078222b31e0d24d0c6159c493727f.tar.gz wallabag-873e3806585078222b31e0d24d0c6159c493727f.tar.zst wallabag-873e3806585078222b31e0d24d0c6159c493727f.zip |
Starred and Archived clears if article is already exists
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 5202c524..b786d4ca 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -110,8 +110,8 @@ class WallabagRestController extends FOSRestController | |||
110 | 110 | ||
111 | $url = $request->request->get('url'); | 111 | $url = $request->request->get('url'); |
112 | $title = $request->request->get('title'); | 112 | $title = $request->request->get('title'); |
113 | $isArchived = (int) $request->request->get('archive'); | 113 | $isArchived = $request->request->get('archive'); |
114 | $isStarred = (int) $request->request->get('starred'); | 114 | $isStarred = $request->request->get('starred'); |
115 | 115 | ||
116 | $entry = $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($url, $this->getUser()->getId()); | 116 | $entry = $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($url, $this->getUser()->getId()); |
117 | 117 | ||