add 'Submitted by username to /r/subreddit' to start of rss feeds if it is a submission (ref #104)

This commit is contained in:
teddit 2021-04-11 12:53:03 +02:00
parent 933a70cc83
commit 670e3104b7

View File

@ -56,7 +56,8 @@ module.exports = function() {
mime = 'image/jpeg'
enclosure = `<enclosure length="0" type="${mime}" url="${img}" />`
}
let append_desc_html = `<br/><a href="${permalink}">[comments]</a>`
let append_desc_html = `submitted by <a href="${protocol}://${config.domain}/u/${user}>/u/${user}</a> to <a href="${protocol}://${config.domain}/r/${post.subreddit}/">r/${post.subreddit}</a>`
append_desc_html += `<br/><a href="${permalink}">[comments]</a>`
t3_elements = `
<description><![CDATA[${unescape(post.selftext_html)}${append_desc_html}]]></description>
${thumbnail}