mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
parent
f0de35d2ee
commit
51a15609b3
2 changed files with 7 additions and 0 deletions
|
@ -109,6 +109,7 @@ class WallabagRestController extends FOSRestController
|
|||
$this->validateAuthentication();
|
||||
|
||||
$url = $request->request->get('url');
|
||||
$title = $request->request->get('title');
|
||||
$isArchived = (int) $request->request->get('archive');
|
||||
$isStarred = (int) $request->request->get('starred');
|
||||
|
||||
|
@ -121,6 +122,10 @@ class WallabagRestController extends FOSRestController
|
|||
);
|
||||
}
|
||||
|
||||
if (!is_null($title)) {
|
||||
$entry->setTitle($title);
|
||||
}
|
||||
|
||||
$tags = $request->request->get('tags', '');
|
||||
if (!empty($tags)) {
|
||||
$this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue