mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-02 08:56:53 +01:00
fix updating entry status through API
This commit is contained in:
parent
2f60e5ea75
commit
0cd0d6eb8c
@ -126,13 +126,9 @@ class WallabagRestController extends FOSRestController
|
|||||||
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true === (bool) $isStarred) {
|
$entry->setStarred((bool) $isStarred);
|
||||||
$entry->setStarred(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (true === (bool) $isArchived) {
|
$entry->setArchived((bool) $isArchived);
|
||||||
$entry->setArchived(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$em->persist($entry);
|
$em->persist($entry);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user