]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix Instapaper import date 3980/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 24 May 2019 12:37:54 +0000 (14:37 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 24 May 2019 12:37:54 +0000 (14:37 +0200)
src/Wallabag/ImportBundle/Import/InstapaperImport.php

index 439c978c71f02a6d4953cf25e7475b2a9a63582a..f7bee9ef01dc13625d94f024f760efa103be32cd 100644 (file)
@@ -93,6 +93,10 @@ class InstapaperImport extends AbstractImport
             return false;
         }
 
+        // most recent articles are first, which means we should create them at the end so they will show up first
+        // as Instapaper doesn't export the creation date of the article
+        $entries = array_reverse($entries);
+
         if ($this->producer) {
             $this->parseEntriesForProducer($entries);