mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-24 07:38:11 +00:00
Starred and Archived clears if article is already exists
This commit is contained in:
parent
cac3f603cf
commit
873e380658
1 changed files with 2 additions and 2 deletions
|
@ -110,8 +110,8 @@ class WallabagRestController extends FOSRestController
|
||||||
|
|
||||||
$url = $request->request->get('url');
|
$url = $request->request->get('url');
|
||||||
$title = $request->request->get('title');
|
$title = $request->request->get('title');
|
||||||
$isArchived = (int) $request->request->get('archive');
|
$isArchived = $request->request->get('archive');
|
||||||
$isStarred = (int) $request->request->get('starred');
|
$isStarred = $request->request->get('starred');
|
||||||
|
|
||||||
$entry = $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($url, $this->getUser()->getId());
|
$entry = $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($url, $this->getUser()->getId());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue