mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 17:41:01 +00:00
fix updating entry status through API
This commit is contained in:
parent
2f60e5ea75
commit
0cd0d6eb8c
1 changed files with 2 additions and 6 deletions
|
@ -126,13 +126,9 @@ class WallabagRestController extends FOSRestController
|
|||
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
||||
}
|
||||
|
||||
if (true === (bool) $isStarred) {
|
||||
$entry->setStarred(true);
|
||||
}
|
||||
$entry->setStarred((bool) $isStarred);
|
||||
|
||||
if (true === (bool) $isArchived) {
|
||||
$entry->setArchived(true);
|
||||
}
|
||||
$entry->setArchived((bool) $isArchived);
|
||||
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$em->persist($entry);
|
||||
|
|
Loading…
Reference in a new issue