mirror of
				https://codeberg.org/tacerus/teddit.git
				synced 2025-11-04 05:27:20 +01:00 
			
		
		
		
	add [link] & [comments] to the rss desc
This commit is contained in:
		
							parent
							
								
									e57b3adf91
								
							
						
					
					
						commit
						6001d0037f
					
				@ -51,6 +51,8 @@ module.exports = function() {
 | 
			
		||||
        if(is_self_link)
 | 
			
		||||
          link.url = link.permalink
 | 
			
		||||
        
 | 
			
		||||
        let append_desc_html = `<br/><a href="${link.url}">[link]</a> <a href="${link.permalink}">[comments]</a>`
 | 
			
		||||
        
 | 
			
		||||
        items += `
 | 
			
		||||
          <item>
 | 
			
		||||
            <title>${link.title}</title>
 | 
			
		||||
@ -61,7 +63,7 @@ module.exports = function() {
 | 
			
		||||
            <thumbnail>${thumbnail}</thumbnail>
 | 
			
		||||
            <link>${link.permalink}</link>
 | 
			
		||||
            <url>${link.url}</url>
 | 
			
		||||
            <description><![CDATA[${unescape(link.selftext_html)}]]></description>
 | 
			
		||||
            <description><![CDATA[${unescape(link.selftext_html)}${append_desc_html}]]></description>
 | 
			
		||||
            <num_comments>${link.num_comments}</num_comments>
 | 
			
		||||
            <ups>${link.ups}</ups>
 | 
			
		||||
            <stickied>${link.stickied}</stickied>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user