Skip to content
Snippets Groups Projects
Unverified Commit 2525e731 authored by Eris's avatar Eris Committed by GitHub
Browse files

Merge pull request #2 from papaschloss/master

bug fixes
parents 56b43c12 994ad5b8
Branches
No related tags found
No related merge requests found
......@@ -19,12 +19,12 @@ class ReadableExtension extends Minz_Extension {
$this->loadConfigValues();
$host = '';
if ( array_key_exists($entry->feed(false), $this->mStore) ) {
if ( array_key_exists($entry->feedId(), $this->mStore) ) {
$host = $this->mercHost."/parser?url=".$entry->link();
$c = curl_init($host);
}
if ( array_key_exists($entry->feed(false), $this->rStore) ) {
if ( array_key_exists($entry->feedId(), $this->rStore) ) {
$host = $this->readHost;
$c = curl_init($host);
$data = "{\"url\": \"" . $entry->link() ."\"}";
......@@ -46,6 +46,9 @@ class ReadableExtension extends Minz_Extension {
return $entry;
}
$val = json_decode($result, true);
if (empty($val) || empty($val["content"])) {
return $entry;
}
$entry->_content($val["content"]);
return $entry;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment