Added link for image

Link for image is very important for sharing rss.
This commit is contained in:
angerangel 2021-05-25 12:52:53 +02:00 committed by GitHub
parent f10ad07fad
commit 5767f08b4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,7 @@ class pluginRSS extends Plugin {
$xml .= '<item>';
$xml .= '<title>'.$page->title().'</title>';
$xml .= '<link>'.$this->encodeURL($page->permalink()).'</link>';
$xml .= '<image>'.$page->coverImage(true).'</image>';
$xml .= '<description>'.Sanitize::html($page->contentBreak()).'</description>';
$xml .= '<pubDate>'.date(DATE_RSS,strtotime($page->getValue('dateRaw'))).'</pubDate>';
$xml .= '<guid isPermaLink="false">'.$page->uuid().'</guid>';