Browse Source

Add enclosure image on RSS field

pull/677/head
Eliastik 1 year ago
parent
commit
9f5d8e983e
No known key found for this signature in database GPG Key ID: 6A29B411D099C5CF
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      system/includes/functions.php

+ 4
- 0
system/includes/functions.php View File

@ -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)));
}
}
}


Loading…
Cancel
Save