diff --git a/system/includes/functions.php b/system/includes/functions.php index 8b1cde2..10ec935 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -2741,6 +2741,10 @@ function generate_rss($posts, $data = null) ->description($body) ->url($p->url) ->appendTo($channel); + + if ($p->image !== null) { + $item->enclosure($p->image, 0, "image/" . end(explode('.', $p->image))); + } } }