Imported entries which fail to fetch get standard error body

This commit is contained in:
Jerome Charaoui 2016-12-02 22:42:36 -05:00
parent 29dca43236
commit 36e6ef52a1
5 changed files with 5 additions and 3 deletions

View file

@ -63,7 +63,7 @@ class ContentProxy
$html = $content['html'];
if (false === $html) {
$html = '<p>Unable to retrieve readable content.</p>';
$html = $this->fetchingErrorMessage;
if (isset($content['open_graph']['og_description'])) {
$html .= '<p><i>But we found a short description: </i></p>';

View file

@ -37,7 +37,7 @@ class ChromeImport extends BrowserImport
{
$data = [
'title' => $entry['name'],
'html' => '',
'html' => false,
'url' => $entry['url'],
'is_archived' => $this->markAsRead,
'tags' => '',

View file

@ -37,7 +37,7 @@ class FirefoxImport extends BrowserImport
{
$data = [
'title' => $entry['title'],
'html' => '',
'html' => false,
'url' => $entry['uri'],
'is_archived' => $this->markAsRead,
'tags' => '',

View file

@ -76,6 +76,7 @@ class InstapaperImport extends AbstractImport
'is_starred' => $data[3] === 'Starred',
'content_type' => '',
'language' => '',
'html' => false,
];
}
fclose($handle);

View file

@ -103,6 +103,7 @@ class ReadabilityImport extends AbstractImport
'is_archived' => $importedEntry['archive'] || $this->markAsRead,
'is_starred' => $importedEntry['favorite'],
'created_at' => $importedEntry['date_added'],
'html' => false,
];
$entry = new Entry($this->user);