From fe8b37c137adbe036f58616c15dbcffd07dd2cd4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 12 Feb 2016 15:59:13 +0100 Subject: Mark all imported articles as read --- src/Wallabag/ImportBundle/Import/WallabagV2Import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Wallabag/ImportBundle/Import/WallabagV2Import.php') 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']); -- cgit v1.2.3