]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Allow fetching content on all import types
authorJerome Charaoui <jerome@riseup.net>
Sat, 3 Dec 2016 04:55:30 +0000 (23:55 -0500)
committerJerome Charaoui <jerome@riseup.net>
Sat, 3 Dec 2016 05:12:20 +0000 (00:12 -0500)
For better consistency, allow all types of imported entries to update,
which was already the case for Firefox and Chrome.

src/Wallabag/ImportBundle/Import/InstapaperImport.php
src/Wallabag/ImportBundle/Import/PinboardImport.php
src/Wallabag/ImportBundle/Import/ReadabilityImport.php
src/Wallabag/ImportBundle/Import/WallabagV1Import.php

index 146a8c7c49f003724f50869e32f725e5b11366ba..70a53f1af5309e64f1734ede1eb8686facc88b84 100644 (file)
@@ -74,8 +74,6 @@ class InstapaperImport extends AbstractImport
                 'status' => $data[3],
                 'is_archived' => $data[3] === 'Archive' || $data[3] === 'Starred',
                 'is_starred' => $data[3] === 'Starred',
-                'content_type' => '',
-                'language' => '',
                 'html' => false,
             ];
         }
index 9bcfbc369d823b06411cd19d6d1936539deac0ec..d9865534ae8fe08a8e5d6d47ec90d595b19b6c0e 100644 (file)
@@ -98,8 +98,6 @@ class PinboardImport extends AbstractImport
         $data = [
             'title' => $importedEntry['description'],
             'url' => $importedEntry['href'],
-            'content_type' => '',
-            'language' => '',
             'is_archived' => ('no' === $importedEntry['toread']) || $this->markAsRead,
             'is_starred' => false,
             'created_at' => $importedEntry['time'],
index 66b00885094ee832ba601a4802de2362ad09b97e..de320d23907070b53e4cdaa45c8909bfdab18be1 100644 (file)
@@ -98,8 +98,6 @@ class ReadabilityImport extends AbstractImport
         $data = [
             'title' => $importedEntry['article__title'],
             'url' => $importedEntry['article__url'],
-            'content_type' => '',
-            'language' => '',
             'is_archived' => $importedEntry['archive'] || $this->markAsRead,
             'is_starred' => $importedEntry['favorite'],
             'created_at' => $importedEntry['date_added'],
index 4f0010624d047131046697f7929f7baf632e16ab..59e3ce026c0ae6d76b79c5f9535d36be11ece5d1 100644 (file)
@@ -37,8 +37,6 @@ class WallabagV1Import extends WallabagImport
             'title' => $entry['title'],
             'html' => $entry['content'],
             'url' => $entry['url'],
-            'content_type' => '',
-            'language' => '',
             'is_archived' => $entry['is_read'] || $this->markAsRead,
             'is_starred' => $entry['is_fav'],
             'tags' => '',