X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FImportBundle%2FImport%2FWallabagV2Import.php;h=c4bac561580b8338220a268156f3da01bb49364f;hb=fe8b37c137adbe036f58616c15dbcffd07dd2cd4;hp=7125eabc1681bff429ce543994feac6e325e2572;hpb=9b5edf33a00490b033692efca9987a35225835ba;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ImportBundle/Import/WallabagV2Import.php b/src/Wallabag/ImportBundle/Import/WallabagV2Import.php index 7125eabc..c4bac561 100644 --- a/src/Wallabag/ImportBundle/Import/WallabagV2Import.php +++ b/src/Wallabag/ImportBundle/Import/WallabagV2Import.php @@ -51,7 +51,7 @@ class WallabagV2Import extends WallabagV1Import implements ImportInterface $entry = new Entry($this->user); $entry->setUrl($importedEntry['url']); $entry->setTitle($importedEntry['title']); - $entry->setArchived($importedEntry['is_archived']); + $entry->setArchived($importedEntry['is_archived'] || $this->markAsRead); $entry->setStarred($importedEntry['is_starred']); $entry->setContent($importedEntry['content']); $entry->setReadingTime($importedEntry['reading_time']);