Entry: add archived_at property and updateArchived method

This commit is contained in:
Sébastien Viande
2018-04-11 11:42:52 +02:00
committed by Jeremy Benoist
parent 2f3af70e1a
commit 7975395d10
13 changed files with 132 additions and 15 deletions

View File

@ -194,7 +194,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 === $importedEntry['status'] || $this->markAsRead);
$entry->updateArchived(1 === $importedEntry['status'] || $this->markAsRead);
// 0 or 1 - 1 If the item is starred
$entry->setStarred(1 === $importedEntry['favorite']);