mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 14:59:26 +01:00
add 'Submitted by username to /r/subreddit' to start of rss feeds if it is a submission (ref #104)
This commit is contained in:
parent
933a70cc83
commit
670e3104b7
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user