aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/PocketImport.php
diff options
context:
space:
mode:
authorSébastien Viande <sviande@gmail.com>2018-04-11 11:42:52 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2018-09-21 10:33:33 +0200
commit7975395d10bb381de8cd15b5ee15198318af6d55 (patch)
tree98e3fc9f9ca7bddfd4331132c44953aa4e120259 /src/Wallabag/ImportBundle/Import/PocketImport.php
parent2f3af70e1ae6f9dd403e87d232ddf5315e34e430 (diff)
downloadwallabag-7975395d10bb381de8cd15b5ee15198318af6d55.tar.gz
wallabag-7975395d10bb381de8cd15b5ee15198318af6d55.tar.zst
wallabag-7975395d10bb381de8cd15b5ee15198318af6d55.zip
Entry: add archived_at property and updateArchived method
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/PocketImport.php')
-rw-r--r--src/Wallabag/ImportBundle/Import/PocketImport.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php
index c1b35b7e..4b1ad1d7 100644
--- a/src/Wallabag/ImportBundle/Import/PocketImport.php
+++ b/src/Wallabag/ImportBundle/Import/PocketImport.php
@@ -194,7 +194,7 @@ class PocketImport extends AbstractImport
194 $this->fetchContent($entry, $url); 194 $this->fetchContent($entry, $url);
195 195
196 // 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted 196 // 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted
197 $entry->setArchived(1 === $importedEntry['status'] || $this->markAsRead); 197 $entry->updateArchived(1 === $importedEntry['status'] || $this->markAsRead);
198 198
199 // 0 or 1 - 1 If the item is starred 199 // 0 or 1 - 1 If the item is starred
200 $entry->setStarred(1 === $importedEntry['favorite']); 200 $entry->setStarred(1 === $importedEntry['favorite']);