]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed imports with is_starred and is_archived 2688/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 7 Dec 2016 15:01:50 +0000 (16:01 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 7 Dec 2016 15:01:50 +0000 (16:01 +0100)
src/Wallabag/ImportBundle/Import/ChromeImport.php
src/Wallabag/ImportBundle/Import/FirefoxImport.php
src/Wallabag/ImportBundle/Import/WallabagV2Import.php

index 1a3249349fd0b51461204f67ce5cd03fe6865d4a..2667890f0287791bd47ce3418ab1017f2616be6f 100644 (file)
@@ -39,7 +39,8 @@ class ChromeImport extends BrowserImport
             'title' => $entry['name'],
             'html' => false,
             'url' => $entry['url'],
-            'is_archived' => $this->markAsRead,
+            'is_archived' => (int) $this->markAsRead,
+            'is_starred' => false,
             'tags' => '',
             'created_at' => substr($entry['date_added'], 0, 10),
         ];
index d3f997703f0170f784a8f3a59783a5a20d6b0756..c50c69b3aa42880c9b9cd03a41c03c467add59fa 100644 (file)
@@ -39,7 +39,8 @@ class FirefoxImport extends BrowserImport
             'title' => $entry['title'],
             'html' => false,
             'url' => $entry['uri'],
-            'is_archived' => $this->markAsRead,
+            'is_archived' => (int) $this->markAsRead,
+            'is_starred' => false,
             'tags' => '',
             'created_at' => substr($entry['dateAdded'], 0, 10),
         ];
index 37c8ca147940e044a6462e59b27722cf398bc4c9..d2a89d79aa77dd2e54abe2ddd479b5880fa36b75 100644 (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;
     }