Custom RSS - Ghost 4.0

Is this manual Official Ghost + Custom RSS Integration compatible with Ghost 4.0?

when I use this code fragment, I get weird published date (31 Dec 1969) and no picture

{{#get "posts" limit="all" include="authors"}}
    {{#foreach posts}}
    <item>
        <title><![CDATA[ {{title}} ]]></title>
        <description><![CDATA[ {{excerpt}} ]]></description>
        <link>{{url absolute="true"}}</link>
        <guid isPermaLink="false">{{id}}</guid>
        <category><![CDATA[ {{primary_tag}} ]]></category>
        <dc:creator><![CDATA[ {{primary_author.name}} ]]></dc:creator>
        <pubDate>{{date format="ddd, DD MMM YYYY HH:mm:ss ZZ"}}</pubDate>
        <media:content url="{{feature_image}}" medium="image"/>
        <content:encoded><![CDATA[ {{excerpt}}<p>&nbsp;</p><p><a href="{{url absolute="true"}}">Read More ...</a></p> ]]></content:encoded>
    </item>
    {{/foreach}}
{{/get}}

And how to replace the default RSS or make another one with blocking the default one?

The date formatting code you have is exactly what I’m using in my custom podcast RSS.

Regarding your second question, to “block” the rss for a route, you’d need to add rss: false to the route definition for the collection.

For example, my postcast route looks like this:

collections:
  /podcast/:
    permalink: /podcast/{slug}/
    template: podcasts
    filter: primary_tag:podcast
    rss: false

and my custom podcast rss route is like this:

routes:
  /podcast/rss/:
    template: podcast/rss
    content_type: text/xml

Most of this is just taken straight from the tutorial about setting up a custom itunes podcast RSS feed: Tutorials

How to check, why there are no images in RSS with “custom RSS” setup in Ghost 4?

Would “Content-Security-Policy” block this?