aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/WallabagV2Import.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-12-07 16:01:50 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-12-07 16:01:50 +0100
commitbb98fede2b7c3e6eba8d47b2ce560d824d166b49 (patch)
tree9bb4ee70f9dc3de4a5b4e3062f18ebd5c8f0eae4 /src/Wallabag/ImportBundle/Import/WallabagV2Import.php
parent2d4b167038ed9e25ebf23eed53a4bc88f17a4b00 (diff)
downloadwallabag-bb98fede2b7c3e6eba8d47b2ce560d824d166b49.tar.gz
wallabag-bb98fede2b7c3e6eba8d47b2ce560d824d166b49.tar.zst
wallabag-bb98fede2b7c3e6eba8d47b2ce560d824d166b49.zip
Fixed imports with is_starred and is_archived
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/WallabagV2Import.php')
-rw-r--r--src/Wallabag/ImportBundle/Import/WallabagV2Import.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Import/WallabagV2Import.php b/src/Wallabag/ImportBundle/Import/WallabagV2Import.php
index 37c8ca14..d2a89d79 100644
--- a/src/Wallabag/ImportBundle/Import/WallabagV2Import.php
+++ b/src/Wallabag/ImportBundle/Import/WallabagV2Import.php
@@ -36,7 +36,8 @@ class WallabagV2Import extends WallabagImport
36 return [ 36 return [
37 'html' => $entry['content'], 37 'html' => $entry['content'],
38 'content_type' => $entry['mimetype'], 38 'content_type' => $entry['mimetype'],
39 'is_archived' => ($entry['is_archived'] || $this->markAsRead), 39 'is_archived' => (int) ($entry['is_archived'] || $this->markAsRead),
40 'is_starred' => false,
40 ] + $entry; 41 ] + $entry;
41 } 42 }
42 43