X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FImportBundle%2FImport%2FPocketImport.php;h=a39d81568664144a1bf503ff27b80b2537094a6e;hb=18460b2d79125d0252e7fe71e1ae84d5ef4f040a;hp=5737928d169afd66a3456bb94c8e1d8b6b84b0e8;hpb=47e47841105a34c852744e207b4a0ea9e879ec49;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index 5737928d..a39d8156 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php @@ -206,7 +206,7 @@ class PocketImport extends AbstractImport $this->fetchContent($entry, $url); // 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted - $entry->setArchived(1 === (int) $importedEntry['status'] || $this->markAsRead); + $entry->updateArchived(1 === (int) $importedEntry['status'] || $this->markAsRead); // 0 or 1 - 1 if the item is starred $entry->setStarred(1 === (int) $importedEntry['favorite']);