]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Import/WallabagV2Import.php
Fix because of some breaking changes of Graby 2.0
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Import / WallabagV2Import.php
index 2603503c33b4feb718a14cab02843b1304c5e563..2ba26003f784a5a2310a040cc5baf1dc0eecd1b9 100644 (file)
@@ -35,9 +35,11 @@ class WallabagV2Import extends WallabagImport
     {
         return [
             'html' => $entry['content'],
-            'content_type' => $entry['mimetype'],
-            'is_archived' => (int) ($entry['is_archived'] || $this->markAsRead),
-            'is_starred' => (int) $entry['is_starred'],
+            'headers' => [
+                'content-type' => $entry['mimetype'],
+            ],
+            'is_archived' => (bool) ($entry['is_archived'] || $this->markAsRead),
+            'is_starred' => (bool) $entry['is_starred'],
         ] + $entry;
     }