mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-05 14:28:40 +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'],
|
'title' => $entry['name'],
|
||||||
'html' => false,
|
'html' => false,
|
||||||
'url' => $entry['url'],
|
'url' => $entry['url'],
|
||||||
'is_archived' => $this->markAsRead,
|
'is_archived' => (int) $this->markAsRead,
|
||||||
|
'is_starred' => false,
|
||||||
'tags' => '',
|
'tags' => '',
|
||||||
'created_at' => substr($entry['date_added'], 0, 10),
|
'created_at' => substr($entry['date_added'], 0, 10),
|
||||||
];
|
];
|
||||||
|
|
|
@ -39,7 +39,8 @@ class FirefoxImport extends BrowserImport
|
||||||
'title' => $entry['title'],
|
'title' => $entry['title'],
|
||||||
'html' => false,
|
'html' => false,
|
||||||
'url' => $entry['uri'],
|
'url' => $entry['uri'],
|
||||||
'is_archived' => $this->markAsRead,
|
'is_archived' => (int) $this->markAsRead,
|
||||||
|
'is_starred' => false,
|
||||||
'tags' => '',
|
'tags' => '',
|
||||||
'created_at' => substr($entry['dateAdded'], 0, 10),
|
'created_at' => substr($entry['dateAdded'], 0, 10),
|
||||||
];
|
];
|
||||||
|
|
|
@ -36,7 +36,8 @@ class WallabagV2Import extends WallabagImport
|
||||||
return [
|
return [
|
||||||
'html' => $entry['content'],
|
'html' => $entry['content'],
|
||||||
'content_type' => $entry['mimetype'],
|
'content_type' => $entry['mimetype'],
|
||||||
'is_archived' => ($entry['is_archived'] || $this->markAsRead),
|
'is_archived' => (int) ($entry['is_archived'] || $this->markAsRead),
|
||||||
|
'is_starred' => false,
|
||||||
] + $entry;
|
] + $entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue