googlereaderimport: actually pass $link to create_article()
otherwise the link db field will be empty, and viewing the original article of an imported starred item results in an empty backend.php page
This commit is contained in:
parent
f6299a731c
commit
c6c968b042
|
@ -164,7 +164,7 @@ class GoogleReaderImport extends Plugin {
|
||||||
$processed++;
|
$processed++;
|
||||||
|
|
||||||
$imported += (int) $this->create_article($owner_uid, $guid, $title,
|
$imported += (int) $this->create_article($owner_uid, $guid, $title,
|
||||||
$updated, $content, $author, $sql_set_marked, $tags,
|
$link, $updated, $content, $author, $sql_set_marked, $tags,
|
||||||
$orig_feed_data);
|
$orig_feed_data);
|
||||||
|
|
||||||
if ($file && $processed % 25 == 0) {
|
if ($file && $processed % 25 == 0) {
|
||||||
|
@ -196,7 +196,7 @@ class GoogleReaderImport extends Plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
// expects ESCAPED data
|
// expects ESCAPED data
|
||||||
private function create_article($owner_uid, $guid, $title, $updated, $content, $author, $marked, $tags, $orig_feed_data) {
|
private function create_article($owner_uid, $guid, $title, $link, $updated, $content, $author, $marked, $tags, $orig_feed_data) {
|
||||||
|
|
||||||
if (!$guid) $guid = sha1($link);
|
if (!$guid) $guid = sha1($link);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue