mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 14:59:26 +01:00
add 'pubDate' for RSS feeds
This commit is contained in:
parent
cf2fe7f9f1
commit
bc0aff9481
@ -69,6 +69,7 @@ module.exports = function() {
|
|||||||
<title>${link.title}</title>
|
<title>${link.title}</title>
|
||||||
<author>${link.author}</author>
|
<author>${link.author}</author>
|
||||||
<created>${link.created}</created>
|
<created>${link.created}</created>
|
||||||
|
<pubDate>${new Date(link.created_utc*1000).toGMTString()}</pubDate>
|
||||||
<domain>${link.domain}</domain>
|
<domain>${link.domain}</domain>
|
||||||
<id>${link.id}</id>
|
<id>${link.id}</id>
|
||||||
<thumbnail>${thumbnail}</thumbnail>
|
<thumbnail>${thumbnail}</thumbnail>
|
||||||
|
@ -74,6 +74,7 @@ module.exports = function() {
|
|||||||
<kind>${kind}</kind>
|
<kind>${kind}</kind>
|
||||||
<subreddit>${post.subreddit}</subreddit>
|
<subreddit>${post.subreddit}</subreddit>
|
||||||
<created>${post.created_utc}</created>
|
<created>${post.created_utc}</created>
|
||||||
|
<pubDate>${new Date(post.created_utc*1000).toGMTString()}</pubDate>
|
||||||
<ups>${post.ups}</ups>
|
<ups>${post.ups}</ups>
|
||||||
<link>${permalink}</link>
|
<link>${permalink}</link>
|
||||||
<edited>${post.edited}</edited>
|
<edited>${post.edited}</edited>
|
||||||
|
Loading…
Reference in New Issue
Block a user