mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 20:56:28 +00:00
Merge pull request #2688 from wallabag/fix-browsers-import
Fixed imports with is_starred and is_archived
This commit is contained in:
commit
75ae3c8d82
3 changed files with 6 additions and 3 deletions
|
@ -39,7 +39,8 @@ class ChromeImport extends BrowserImport
|
|||
'title' => $entry['name'],
|
||||
'html' => false,
|
||||
'url' => $entry['url'],
|
||||
'is_archived' => $this->markAsRead,
|
||||
'is_archived' => (int) $this->markAsRead,
|
||||
'is_starred' => false,
|
||||
'tags' => '',
|
||||
'created_at' => substr($entry['date_added'], 0, 10),
|
||||
];
|
||||
|
|
|
@ -39,7 +39,8 @@ class FirefoxImport extends BrowserImport
|
|||
'title' => $entry['title'],
|
||||
'html' => false,
|
||||
'url' => $entry['uri'],
|
||||
'is_archived' => $this->markAsRead,
|
||||
'is_archived' => (int) $this->markAsRead,
|
||||
'is_starred' => false,
|
||||
'tags' => '',
|
||||
'created_at' => substr($entry['dateAdded'], 0, 10),
|
||||
];
|
||||
|
|
|
@ -36,7 +36,8 @@ class WallabagV2Import extends WallabagImport
|
|||
return [
|
||||
'html' => $entry['content'],
|
||||
'content_type' => $entry['mimetype'],
|
||||
'is_archived' => ($entry['is_archived'] || $this->markAsRead),
|
||||
'is_archived' => (int) ($entry['is_archived'] || $this->markAsRead),
|
||||
'is_starred' => false,
|
||||
] + $entry;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue