|
|
@@ -250,6 +250,16 @@ class Feed extends Model {
|
|
|
}
|
|
|
|
|
|
$content = $item->get_content ();
|
|
|
+ $links = array();
|
|
|
+ foreach ($item->get_enclosures() as $enclosure) {
|
|
|
+ $link = $enclosure->get_link();
|
|
|
+ if (array_key_exists($link, $links)) continue;
|
|
|
+ $links[$link] = '1';
|
|
|
+ $mime = strtolower($enclosure->get_type());
|
|
|
+ if (strpos($mime, 'image/') === 0) {
|
|
|
+ $content .= '<br /><img src="' . $link . '" />';
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
$entry = new Entry (
|
|
|
$this->id (),
|