aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/PocketImport.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-09-09 09:36:07 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-11 21:58:55 +0200
commit6d65c0a8b089d3caa6f8e20d7935a9fe2f87d926 (patch)
tree38ea829aeea879f4bfdd9873cea556a244247b7e /src/Wallabag/ImportBundle/Import/PocketImport.php
parent3aca0a9f00417b64203a660dee0a2b4c0fe22ac8 (diff)
downloadwallabag-6d65c0a8b089d3caa6f8e20d7935a9fe2f87d926.tar.gz
wallabag-6d65c0a8b089d3caa6f8e20d7935a9fe2f87d926.tar.zst
wallabag-6d65c0a8b089d3caa6f8e20d7935a9fe2f87d926.zip
Add ability to define created_at for all import
At the moment only Readability & wallabag v2 import allow created_at import. Pocket removed `time_added` field from their API v2 to v3... And wallabag v1 doesn't export that value.
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/PocketImport.php')
-rw-r--r--src/Wallabag/ImportBundle/Import/PocketImport.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php
index 845380b7..92dcdd40 100644
--- a/src/Wallabag/ImportBundle/Import/PocketImport.php
+++ b/src/Wallabag/ImportBundle/Import/PocketImport.php
@@ -193,6 +193,11 @@ class PocketImport extends AbstractImport
193 $this->client = $client; 193 $this->client = $client;
194 } 194 }
195 195
196 /**
197 * {@inheritdoc}
198 *
199 * @see https://getpocket.com/developer/docs/v3/retrieve
200 */
196 public function parseEntry(array $importedEntry) 201 public function parseEntry(array $importedEntry)
197 { 202 {
198 $url = isset($importedEntry['resolved_url']) && $importedEntry['resolved_url'] != '' ? $importedEntry['resolved_url'] : $importedEntry['given_url']; 203 $url = isset($importedEntry['resolved_url']) && $importedEntry['resolved_url'] != '' ? $importedEntry['resolved_url'] : $importedEntry['given_url'];