Fixed imports with is_starred and is_archived

This commit is contained in:
Nicolas Lœuillet
2016-12-07 16:01:50 +01:00
parent 2d4b167038
commit bb98fede2b
3 changed files with 6 additions and 3 deletions

View File

@ -36,7 +36,8 @@ class WallabagV2Import extends WallabagImport
return [
'html' => $entry['content'],
'content_type' => $entry['mimetype'],
'is_archived' => ($entry['is_archived'] || $this->markAsRead),
'is_archived' => (int) ($entry['is_archived'] || $this->markAsRead),
'is_starred' => false,
] + $entry;
}